22 May
2025
22 May
'25
6:47 p.m.
Brendan Shanks (@bshanks) commented about dlls/winemac.drv/cocoa_window.m:
surfaceRect = rect; }
- - (void) setColorImage:(CGImageRef)image + - (void) setIOSurface:(IOSurfaceRef)image { - CGImageRelease(colorImage); - colorImage = CGImageRetain(image); + _IOSurface = image;
`WineWindow` should hold a ref to the IOSurface. There's an `IOSurface` ObjC class (toll-free bridged to IOSurfaceRef) which could save a few lines of code, or `CFRetain`/`CFRelease` should work too. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/7938#note_104286