aboutsummaryrefslogtreecommitdiff
path: root/Foundation/GTMLightweightProxy.m
diff options
context:
space:
mode:
Diffstat (limited to 'Foundation/GTMLightweightProxy.m')
-rw-r--r--Foundation/GTMLightweightProxy.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Foundation/GTMLightweightProxy.m b/Foundation/GTMLightweightProxy.m
index ad7e0a1..39f5f5c 100644
--- a/Foundation/GTMLightweightProxy.m
+++ b/Foundation/GTMLightweightProxy.m
@@ -48,9 +48,9 @@
// Even though we don't retain this object, we hang it on the lifetime
// of the calling threads pool so it's lifetime is safe for at least that
// long.
- repObject = [[representedObject_ retain] autorelease];
+ repObject = [representedObject_ retain];
}
- return repObject;
+ return [repObject autorelease];
}
- (void)setRepresentedObject:(id)object {