1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

win32u: Avoid a crash when cleaning up a monitor without an adapter.

This commit is contained in:
Rémi Bernon 2024-03-20 22:36:21 +01:00 committed by Alexandre Julliard
parent a78cea20d1
commit 9f3f61283d

View file

@ -1501,7 +1501,7 @@ static void clear_display_devices(void)
while (!list_empty( &monitors ))
{
monitor = LIST_ENTRY( list_head( &monitors ), struct monitor, entry );
adapter_release( monitor->adapter );
if (monitor->adapter) adapter_release( monitor->adapter );
list_remove( &monitor->entry );
free( monitor );
}