]> git.wincent.com - WOTest.git/blobdiff - WOObjectMock.m
Code clean-up for garbage collection
[WOTest.git] / WOObjectMock.m
index 5dc4c27859c4ad6b3ed6bb8455550dac7e13ff76..f78ae43385a6435a309fc78cda05319ca590cac4 100644 (file)
@@ -36,7 +36,7 @@
 {
     NSParameterAssert(aClass != NULL);
     NSParameterAssert([NSObject WOTest_isRegisteredClass:aClass]);     // only registered classes pass (do not pass meta classes)
-    return [[[self alloc] initWithClass:aClass] autorelease];
+    return [[self alloc] initWithClass:aClass];
 }
 
 - (id)initWithClass:(Class)aClass