]> git.wincent.com - WOTest.git/blobdiff - NSMethodSignature+WOTest.m
Code clean-up for garbage collection
[WOTest.git] / NSMethodSignature+WOTest.m
index 1fa828ad82e503b295dc8f772920640804dbf28a..c136779c6b76bfda3b539ddce09d49d45dd7c0a6 100644 (file)
@@ -107,12 +107,11 @@ See also http://www.stuffonfire.com/2005/12/signaturewithobjctypes_is_stil.html
 
 #ifdef WO_USE_OWN_METHOD_SIGNATURE_IMPLEMENTATION
 
-    return [[[self alloc] initWithObjCTypes:types] autorelease];
+    return [[self alloc] initWithObjCTypes:types];
 
 #else /* use private Apple API */
 
-    NSAssert([self respondsToSelector:@selector(signatureWithObjCTypes:)],
-             @"signatureWithObjCTypes: selector not recognized");
+    NSAssert([self respondsToSelector:@selector(signatureWithObjCTypes:)], @"signatureWithObjCTypes: selector not recognized");
     return [self signatureWithObjCTypes:types];
 
 #endif