Commit 9f3f6128 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

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

parent a78cea20
......@@ -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 );
}
......
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