server: Fix invalid memory accesss caused by destroying winstation before desktop.

Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sebastian Lackner 2016-01-22 07:01:29 +01:00 committed by Alexandre Julliard
parent 8676f7bae0
commit df39830846
1 changed files with 1 additions and 0 deletions

View File

@ -253,6 +253,7 @@ static void desktop_destroy( struct object *obj )
if (desktop->global_hooks) release_object( desktop->global_hooks );
if (desktop->close_timeout) remove_timeout_user( desktop->close_timeout );
list_remove( &desktop->entry );
unlink_named_object( obj );
release_object( desktop->winstation );
}