14 Jun
2024
14 Jun
'24
7:01 p.m.
Brendan Shanks (@bshanks) commented about dlls/winemac.drv/cocoa_window.m:
} }
+ - (CGImageRef) setColorImage:(CGImageRef)image + { + CGImageRef previous = colorImage; + colorImage = image; + return previous;
I think it would be better to do the release/retain calls here in the setter, rather than in `macdrv_window_set_color_image()`. Then the setter can also return void. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/5798#note_73232