mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 20:50:44 +00:00
Fix memory leak when creating the blank image, the image is retained by -[NSCell initImageCell:]
This commit is contained in:
parent
829d5367f9
commit
e74144b1bd
1 changed files with 1 additions and 1 deletions
|
@ -3598,7 +3598,7 @@ static NSDictionary *titleTextAttributes[3] = {nil, nil, nil};
|
|||
|
||||
if (![outlineView isExpandable: item])
|
||||
{
|
||||
image = [[NSImage alloc] initWithSize: NSMakeSize(14.0,14.0)]; // revisit this.. memory leak
|
||||
image = AUTORELEASE([[NSImage alloc] initWithSize: NSMakeSize(14.0,14.0)]);
|
||||
}
|
||||
|
||||
level = [outlineView levelForItem: item];
|
||||
|
|
Loading…
Reference in a new issue