diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2009-06-15 20:45:37 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2009-06-15 20:45:37 +0000 |
commit | d134f62482470476fcc00c773d2858fccd3fba52 (patch) | |
tree | 44d378ba5e26b1f65d3ede2701be68bc35941673 /Foundation | |
parent | f5ae2596f49d9371730825e43f9137282e53b658 (diff) |
[Author: mrossetti]
Mostly minor cleanup with a couple of leaks plugged.
DELTA=28 (2 added, 7 deleted, 19 changed)
R=dmaclach,hawk
Diffstat (limited to 'Foundation')
-rw-r--r-- | Foundation/GTMTransientRootProxy.m | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Foundation/GTMTransientRootProxy.m b/Foundation/GTMTransientRootProxy.m index 04591d3..3d34bda 100644 --- a/Foundation/GTMTransientRootProxy.m +++ b/Foundation/GTMTransientRootProxy.m @@ -199,15 +199,13 @@ } - (void)releaseRealProxy { - BOOL connectionChanged = NO; @synchronized (self) { [[NSNotificationCenter defaultCenter] removeObserver:self]; // Only trigger if we had a proxy before if (realProxy_) { - connectionChanged = YES; + [realProxy_ release]; + realProxy_ = nil; } - [realProxy_ release]; - realProxy_ = nil; } } |