win32u: Avoid a crash when cleaning up a monitor without an adapter.
This commit is contained in:
parent
a78cea20d1
commit
9f3f61283d
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue