Commit 757c5763 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

winemac: Fix a memory leak if posting WM_DROPFILES fails.

parent db42703d
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment