diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2010-04-13 18:33:49 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2010-04-13 18:33:49 +0000 |
commit | 2ec34654040eecce81ec605fc5224db9737ae051 (patch) | |
tree | d6441ba3d7caf16ed5511767e0d50c467be08d15 /Foundation/GTMNSObject+KeyValueObserving.m | |
parent | 849bc3e4d10cb3fc03fbad3a7c56d0758a13d33c (diff) |
[Author: dmaclach]
Should fix up the GTM build problems. I hadn't noticed the leak that would
occur in the release case.
R=thomasvl
DELTA=3 (0 added, 2 deleted, 1 changed)
Diffstat (limited to 'Foundation/GTMNSObject+KeyValueObserving.m')
-rw-r--r-- | Foundation/GTMNSObject+KeyValueObserving.m | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Foundation/GTMNSObject+KeyValueObserving.m b/Foundation/GTMNSObject+KeyValueObserving.m index 9247082..9b9acce 100644 --- a/Foundation/GTMNSObject+KeyValueObserving.m +++ b/Foundation/GTMNSObject+KeyValueObserving.m @@ -240,14 +240,12 @@ static char* GTMKeyValueObservingHelperContext forKeyPath:keyPath selector:selector]; @synchronized(self) { -#if DEBUG GTMKeyValueObservingHelper *oldHelper = [observerHelpers_ objectForKey:key]; if (oldHelper) { _GTMDevLog(@"%@ already observing %@ forKeyPath %@", observer, target, keyPath); [oldHelper deregister]; } -#endif // DEBUG [observerHelpers_ setObject:helper forKey:key]; } [helper release]; |