mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
740c02a672
commit
098425e3e0
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue