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 17:16:47 -04:00
parent 829d5367f9
commit e74144b1bd

View file

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