mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +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
410dc201b6
commit
9a8e1a650b
1 changed files with 4 additions and 4 deletions
|
@ -298,10 +298,6 @@ static NotificationDispatcher *default_notification_dispatcher = nil;
|
||||||
}
|
}
|
||||||
[nr_list appendObject: nr];
|
[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
|
- (void) addInvocation: (id <Invoking>)invocation
|
||||||
|
@ -323,6 +319,8 @@ static NotificationDispatcher *default_notification_dispatcher = nil;
|
||||||
name: name
|
name: name
|
||||||
object: object];
|
object: object];
|
||||||
|
|
||||||
|
/* Since nr was retained when it was added to the Array and
|
||||||
|
LinkedList above, we can release it now. */
|
||||||
[nr release];
|
[nr release];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -351,6 +349,8 @@ static NotificationDispatcher *default_notification_dispatcher = nil;
|
||||||
name: name
|
name: name
|
||||||
object: object];
|
object: object];
|
||||||
|
|
||||||
|
/* Since nr was retained when it was added to the Array and
|
||||||
|
LinkedList above, we can release it now. */
|
||||||
[nr release];
|
[nr release];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue