From 2ec34654040eecce81ec605fc5224db9737ae051 Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Tue, 13 Apr 2010 18:33:49 +0000 Subject: [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) --- Foundation/GTMNSObject+KeyValueObserving.m | 2 -- 1 file changed, 2 deletions(-) (limited to 'Foundation/GTMNSObject+KeyValueObserving.m') 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]; -- cgit v1.2.3