From 2ca3fadbdde6e79dbe3843d8fbb74f997e3174f8 Mon Sep 17 00:00:00 2001 From: FredKiefer Date: Fri, 25 Jul 2003 22:14:40 +0000 Subject: [PATCH] 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 --- Source/NSImage.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/NSImage.m b/Source/NSImage.m index 3499cdb09..ad16319f9 100644 --- a/Source/NSImage.m +++ b/Source/NSImage.m @@ -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; }