winemac: Fix a memory leak if posting WM_DROPFILES fails.
This commit is contained in:
parent
db42703d5f
commit
757c57634e
|
@ -466,8 +466,8 @@ BOOL query_drag_drop(macdrv_query* query)
|
|||
ret = PostMessageW(hwnd, WM_DROPFILES, (WPARAM)hdrop, 0L);
|
||||
/* hdrop is owned by the message and freed when the recipient calls DragFinish(). */
|
||||
}
|
||||
else
|
||||
GlobalFree(hdrop);
|
||||
|
||||
if (!ret) GlobalFree(hdrop);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue