]> git.wincent.com - WOTest.git/blobdiff - NSValue+WOTest.m
Code clean-up for garbage collection
[WOTest.git] / NSValue+WOTest.m
index 9bb24c04972ddf9e4b1419a54dc2f3f2522bf6e8..d0232108d9d47eb982b47a18af88cdf3aaf0d280 100644 (file)
         {
             // for NSString objects: just return content
             if ([NSObject WOTest_object:valueContents isKindOfClass:[NSString class]])
         {
             // for NSString objects: just return content
             if ([NSObject WOTest_object:valueContents isKindOfClass:[NSString class]])
-                return [[valueContents retain] autorelease];
+                return valueContents;
             else if ([NSObject WOTest_object:valueContents respondsToSelector:@selector(description)] &&
                      [NSObject WOTest_isIdReturnType:[NSObject WOTest_returnTypeForObject:valueContents
                                                                                  selector:@selector(description)]])
             else if ([NSObject WOTest_object:valueContents respondsToSelector:@selector(description)] &&
                      [NSObject WOTest_isIdReturnType:[NSObject WOTest_returnTypeForObject:valueContents
                                                                                  selector:@selector(description)]])