Commit ee5be579 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

Avoid unnecessary window locking in X11DRV_DestroyWindow.

parent 16ba0255
......@@ -836,10 +836,9 @@ BOOL X11DRV_DestroyWindow( HWND hwnd )
{
struct x11drv_thread_data *thread_data = x11drv_thread_data();
Display *display = thread_data->display;
WND *wndPtr = WIN_GetPtr( hwnd );
struct x11drv_win_data *data;
if (!(data = X11DRV_get_win_data( hwnd ))) goto done;
if (!(data = X11DRV_get_win_data( hwnd ))) return TRUE;
destroy_whole_window( display, data );
destroy_icon_window( display, data );
......@@ -852,8 +851,6 @@ BOOL X11DRV_DestroyWindow( HWND hwnd )
wine_tsx11_unlock();
HeapFree( GetProcessHeap(), 0, data );
done:
WIN_ReleasePtr( wndPtr );
return TRUE;
}
......
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