Avoid unnecessary window locking in X11DRV_DestroyWindow.

This commit is contained in:
Dmitry Timoshkov 2005-03-07 17:13:53 +00:00 committed by Alexandre Julliard
parent 16ba0255e7
commit ee5be57935
1 changed files with 1 additions and 4 deletions

View File

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