d3d9: Don't release the parent device before destroying its children.
authorAllan Tong <actong88@gmail.com>
Sat, 26 Sep 2009 13:56:16 +0000 (09:56 -0400)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 29 Sep 2009 10:05:47 +0000 (12:05 +0200)
commit5d56eddb7c17db867817def582e8f8316d7a6c20
treea19cb61b6b24afa738e554a1fbb307ed33fe5b0d
parentc1dbeade529f45653f146a5849d9777c602dbda2
d3d9: Don't release the parent device before destroying its children.

Releasing the device earlier may cause the underlying wineD3D device
to be freed before the child object has had a chance to clean up.
dlls/d3d9/cubetexture.c
dlls/d3d9/indexbuffer.c
dlls/d3d9/pixelshader.c
dlls/d3d9/surface.c
dlls/d3d9/swapchain.c
dlls/d3d9/texture.c
dlls/d3d9/vertexbuffer.c
dlls/d3d9/vertexdeclaration.c
dlls/d3d9/vertexshader.c
dlls/d3d9/volumetexture.c