wined3d: Clear the device if we're not removing the entry from the table in wined3d_u...
commitfaa040cd9e9f34a6abdf80833912bfdd581b9921
authorHenri Verbeet <hverbeet@codeweavers.com>
Wed, 25 Jan 2012 23:21:17 +0000 (26 00:21 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 26 Jan 2012 16:43:50 +0000 (26 17:43 +0100)
tree556eca0a777d4243d04e66bfc078c9554b699689
parentd3918683e6a59b4068f5d28f72a7ab6f78e2c526
wined3d: Clear the device if we're not removing the entry from the table in wined3d_unregister_window().

The device may be destroyed after the window is unregistered, causing
device_process_message() to access freed memory.
dlls/wined3d/wined3d_main.c