Release the image after setting

This commit is contained in:
Mihai Alexandru
2024-04-22 07:31:53 +03:00
committed by GitHub
parent b2efa65ff8
commit 0f5d5799e0
+1
View File
@@ -114,6 +114,7 @@ namespace ExternalMac
NSImage *tmpImage = [NSImage imageNamed:cursorImageName];
cursor = [[NSCursor alloc] initWithImage:tmpImage hotSpot:NSMakePoint(customX, customY)];
customCursorCache[cursorImageName.UTF8String] = cursor;
[tmpImage release];
}
break;