In [initWithIconHandle:] and [initWithBitmapHandle:] release the

new bitmap image representation after adding it to the array.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17338 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2003-07-25 22:14:40 +00:00
parent a6455c8649
commit 907959a781

View file

@ -358,6 +358,7 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
}
self = [self init];
[self addRepresentation: rep];
RELEASE(rep);
return self;
}
@ -373,6 +374,7 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
}
self = [self init];
[self addRepresentation: rep];
RELEASE(rep);
return self;
}