mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 18:11:06 +00:00
Fix memory leak when creating the blank image, the image is retained by -[NSCell initImageCell:]
This commit is contained in:
parent
e74144b1bd
commit
8c9278e12a
1 changed files with 1 additions and 1 deletions
|
@ -3743,7 +3743,7 @@ static NSDictionary *titleTextAttributes[3] = {nil, nil, nil};
|
|||
|
||||
if (![v 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 = [v levelForItem: item];
|
||||
|
|
Loading…
Reference in a new issue