From 7c25164330d23a29083ec15ce633f35798231ff4 Mon Sep 17 00:00:00 2001 From: Riccardo Mottola Date: Wed, 26 Jul 2023 08:39:05 +0200 Subject: [PATCH] release _imageRep early --- Source/NSDockTile.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/NSDockTile.m b/Source/NSDockTile.m index d91b231c0c..952be8c47a 100644 --- a/Source/NSDockTile.m +++ b/Source/NSDockTile.m @@ -62,6 +62,7 @@ - (instancetype) init _dockTileImage = [[NSImage alloc] initWithSize: [_appIconImage size]]; [_dockTileImage setCacheMode: NSImageCacheNever]; // Only needed because NSImage caches NSCustomImageReps [_dockTileImage addRepresentation: _imageRep]; + RELEASE(_imageRep); [NSApp setApplicationIconImage: _dockTileImage]; } return self; @@ -72,7 +73,6 @@ - (oneway void) release RELEASE(_contentView); RELEASE(_badgeLabel); RELEASE(_appIconImage); - RELEASE(_imageRep); RELEASE(_dockTileImage); [super release]; }