mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
([NotificationDispatcher
-_addObserver:notificationRequest:name:object:]): Don't release NR here. ([NotificationDispatcher -addInvocation:name:object:]): Release it here. ([NotificationDispatcher -addObserver:selector:name:object:]): Likewise. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1388 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
64a214f8da
commit
9f48ee5fdf
1 changed files with 4 additions and 4 deletions
|
@ -298,10 +298,6 @@ static NotificationDispatcher *default_notification_dispatcher = nil;
|
|||
}
|
||||
[nr_list appendObject: nr];
|
||||
}
|
||||
|
||||
/* Since nr was retained when it was added to the Array and
|
||||
LinkedListabove, we can release it now. */
|
||||
[nr release];
|
||||
}
|
||||
|
||||
- (void) addInvocation: (id <Invoking>)invocation
|
||||
|
@ -323,6 +319,8 @@ static NotificationDispatcher *default_notification_dispatcher = nil;
|
|||
name: name
|
||||
object: object];
|
||||
|
||||
/* Since nr was retained when it was added to the Array and
|
||||
LinkedList above, we can release it now. */
|
||||
[nr release];
|
||||
}
|
||||
|
||||
|
@ -351,6 +349,8 @@ static NotificationDispatcher *default_notification_dispatcher = nil;
|
|||
name: name
|
||||
object: object];
|
||||
|
||||
/* Since nr was retained when it was added to the Array and
|
||||
LinkedList above, we can release it now. */
|
||||
[nr release];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue