([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:
Andrew McCallum 1996-04-17 00:29:24 +00:00
parent 64a214f8da
commit 9f48ee5fdf

View file

@ -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];
}