]> git.wincent.com - WOTest.git/blobdiff - WOObjectStub.m
Code clean-up for garbage collection
[WOTest.git] / WOObjectStub.m
index 2dfb11ab69f71610bab1ec4e0d44e3ae028ae0e9..f0cf06f97742e84d6ee370b53e6a338a14fd0f72 100644 (file)
@@ -35,7 +35,7 @@
 + (id)stubForClass:(Class)aClass withDelegate:(id)aDelegate
 {
     NSParameterAssert(aClass != NULL);
-    return [[[self alloc] initWithClass:aClass delegate:aDelegate] autorelease];
+    return [[self alloc] initWithClass:aClass delegate:aDelegate];
 }
 
 - (id)initWithClass:(Class)aClass delegate:(id)aDelegate