mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-21 03:21:01 +00:00
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:
parent
a6455c8649
commit
907959a781
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue