winemac.drv: Release mouse capture when destroying window specified in SetCapture call.

This commit is contained in:
Piotr Caban 2015-07-17 12:54:54 +02:00 committed by Alexandre Julliard
parent 6ab6c23707
commit a90592c8d2

View File

@ -1274,6 +1274,8 @@ void CDECL macdrv_DestroyWindow(HWND hwnd)
if (!(data = get_win_data(hwnd))) return;
if (hwnd == GetCapture()) macdrv_SetCapture(0, 0);
if (data->gl_view) macdrv_dispose_view(data->gl_view);
destroy_cocoa_window(data);