Skip to content

Commit

Permalink
release _imageRep early
Browse files Browse the repository at this point in the history
  • Loading branch information
rmottola committed Jul 26, 2023
1 parent 03f80e4 commit 7c25164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/NSDockTile.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -72,7 +73,6 @@ - (oneway void) release
RELEASE(_contentView);
RELEASE(_badgeLabel);
RELEASE(_appIconImage);
RELEASE(_imageRep);
RELEASE(_dockTileImage);
[super release];
}
Expand Down

0 comments on commit 7c25164

Please sign in to comment.