http://bugs.winehq.org/show_bug.cgi?id=27079
--- Comment #4 from Piotr Pawlow pp@siedziba.pl 2011-05-31 19:09:09 CDT --- Created an attachment (id=34975) --> (http://bugs.winehq.org/attachment.cgi?id=34975) proposed patch
Set container of swapchain surfaces to WINED3D_CONTAINER_NONE in swapchain_init() error path to stop refcount forwarding. Otherwise the swapchain refcount drops to zero, and swapchain_cleanup() gets called on an invalid, partly initialized swapchain.