diff options
Diffstat (limited to 'Foundation/GTMLightweightProxy.m')
-rw-r--r-- | Foundation/GTMLightweightProxy.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Foundation/GTMLightweightProxy.m b/Foundation/GTMLightweightProxy.m index 39f5f5c..c00e44b 100644 --- a/Foundation/GTMLightweightProxy.m +++ b/Foundation/GTMLightweightProxy.m @@ -17,7 +17,7 @@ // #import "GTMLightweightProxy.h" - +#import "GTMDefines.h" @implementation GTMLightweightProxy @@ -28,12 +28,14 @@ } #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 +#if GTM_SUPPORT_GC // -[NSProxy finalize] is only in 10.5 or later - (void)finalize { representedObject_ = nil; [super finalize]; } #endif +#endif - (void)dealloc { // it's weak, we don't release |