Tiny change to comply with docs which state that the notification name is

copied (not just retained).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2968 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1998-09-08 07:55:50 +00:00
parent 740c02a672
commit 098425e3e0

View file

@ -33,7 +33,7 @@
userInfo: info
{
[super init];
_name = [name retain];
_name = [name copy];
_object = [object retain];
_info = [info retain];
return self;
@ -94,7 +94,6 @@
if (NSShouldRetainWithZone (self, zone))
return [self retain];
/* xxx How deep should the copy go? Should we copy _name, etc.? */
return [[[self class] allocWithZone: zone]
initWithName: _name
object: _object