http://bugs.winehq.org/show_bug.cgi?id=20467
--- Comment #16 from Henri Verbeet hverbeet@gmail.com 2011-03-27 10:25:05 CDT --- (In reply to comment #15)
trace:ddraw:ddraw_surface7_QueryInterface (0x131d70) returning IDirectDrawGammaControl interface at 0x131d78
...
trace:ddraw:ddraw_gamma_control_Release iface 0x131d78. trace:ddraw:ddraw_surface7_Release 0x131d70 decreasing refcount to 2. trace:ddraw:ddraw_gamma_control_Release iface 0x131d78. trace:ddraw:ddraw_surface7_Release 0x131d70 decreasing refcount to 1. trace:ddraw:ddraw_gamma_control_Release iface 0x131d78. trace:ddraw:ddraw_surface7_Release 0x131d70 decreasing refcount to 0. trace:ddraw:ddraw_surface7_Release (0x131d70) Destroying the render target, uninitializing D3D
Looks like this is essentially due to ddraw needing separate ref counts for each surface interface.