winex11.drv: Check if the surface is in list in wine_vk_surface_release().
Fixes a regression introduced by
6dcaff421f
.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f183f8f946
commit
963589ee29
|
@ -211,9 +211,12 @@ static void wine_vk_surface_release(struct wine_vk_surface *surface)
|
|||
if (InterlockedDecrement(&surface->ref))
|
||||
return;
|
||||
|
||||
EnterCriticalSection(&context_section);
|
||||
list_remove(&surface->entry);
|
||||
LeaveCriticalSection(&context_section);
|
||||
if (surface->entry.next)
|
||||
{
|
||||
EnterCriticalSection(&context_section);
|
||||
list_remove(&surface->entry);
|
||||
LeaveCriticalSection(&context_section);
|
||||
}
|
||||
|
||||
if (surface->window)
|
||||
XDestroyWindow(gdi_display, surface->window);
|
||||
|
|
Loading…
Reference in New Issue