Brendan Shanks : winemac.drv: Fix use-after-free in macdrv_copy_pasteboard_types.
Module: wine Branch: master Commit: 17cbc13b90e276465e0e56c58f885790b951a19a URL: https://gitlab.winehq.org/wine/wine/-/commit/17cbc13b90e276465e0e56c58f88579... Author: Brendan Shanks <bshanks(a)codeweavers.com> Date: Thu May 2 16:02:24 2024 -0700 winemac.drv: Fix use-after-free in macdrv_copy_pasteboard_types. Fixes a regression from bb2e02ab66c5c602d635722cf3a5820d6b366006. --- dlls/winemac.drv/cocoa_clipboard.m | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/winemac.drv/cocoa_clipboard.m b/dlls/winemac.drv/cocoa_clipboard.m index a3dca323705..4994442f1df 100644 --- a/dlls/winemac.drv/cocoa_clipboard.m +++ b/dlls/winemac.drv/cocoa_clipboard.m @@ -103,6 +103,7 @@ CFArrayRef macdrv_copy_pasteboard_types(CFTypeRef pasteboard) @"com.compuserve.gif" : @(NSBitmapImageFileTypeGIF), @"public.jpeg" : @(NSBitmapImageFileTypeJPEG), }; + [BitmapOutputTypeMap retain]; }); OnMainThread(^{
participants (1)
-
Alexandre Julliard