]> git.wincent.com - WOTest.git/blobdiff - WOProtocolMock.m
Code clean-up for garbage collection
[WOTest.git] / WOProtocolMock.m
index 55a5ef275517a15eb1bb2426fd5ed44965ccaa17..c7429254203a959434c137e23abebf5a82b8ef3e 100644 (file)
@@ -48,7 +48,7 @@ NSString *WOStringFromProtocol(Protocol *aProtocol)
 + (id)mockForProtocol:(Protocol *)aProtocol
 {
     NSParameterAssert(aProtocol != NULL);
-    return [[[self alloc] initWithProtocol:aProtocol] autorelease];
+    return [[self alloc] initWithProtocol:aProtocol];
 }
 
 - (id)initWithProtocol:(Protocol *)aProtocol