winemac: Fix a memory leak if posting WM_DROPFILES fails.

This commit is contained in:
Ken Thomases 2014-05-14 20:15:30 -05:00 committed by Alexandre Julliard
parent db42703d5f
commit 757c57634e
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}