Changeset 3794 for trunk/Additions
- Timestamp:
- 07/18/08 17:42:24 (4 months ago)
- Files:
-
- trunk/Additions/NSNotificationAdditions.m (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Additions/NSNotificationAdditions.m
r3729 r3794 30 30 if( pthread_main_np() ) return [self postNotificationName:name object:object userInfo:userInfo]; 31 31 32 // The info dictionary is released in _postNotificationName. 32 33 NSMutableDictionary *info = [[NSMutableDictionary allocWithZone:nil] initWithCapacity:3]; 33 34 if( name ) [info setObject:name forKey:@"name"]; … … 45 46 [[self defaultCenter] postNotificationName:name object:object userInfo:userInfo]; 46 47 47 [info release]; 48 [info release]; // Balance the alloc in postNotificationOnMainThreadWithName. 48 49 } 49 50 @end
