Fix small bug in last commit.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28996 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2009-11-13 07:51:58 +00:00
parent c5a5827272
commit 81a8907f45
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2009-11-12 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSImage.m (-copyWithZone:): Set the name of the copy to
nil, not that of the original image.
2009-11-12 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSImage.m: fixup copy/dealloc handling of named images

View file

@ -432,7 +432,7 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
return self;
}
- (id)initWithContentsOfURL:(NSURL *)anURL
- (id) initWithContentsOfURL: (NSURL *)anURL
{
NSArray *array = [NSImageRep imageRepsWithContentsOfURL: anURL];
@ -503,7 +503,7 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
copy = (NSImage*)NSCopyObject (self, 0, zone);
_name = nil;
copy->_name = nil;
RETAIN(_fileName);
RETAIN(_color);
copy->_lockedView = nil;