Fix memory leak when creating the blank image, the image is retained by -[NSCell initImageCell:]

This commit is contained in:
Gregory John Casamento 2024-04-19 23:00:25 -04:00
parent e74144b1bd
commit 8c9278e12a

View file

@ -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];