d3d10: Release the device reference in d3d10_stateblock_Release().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2017-10-12 16:17:09 +02:00 committed by Alexandre Julliard
parent fa94223511
commit dc0310c029
1 changed files with 1 additions and 0 deletions

View File

@ -274,6 +274,7 @@ static ULONG STDMETHODCALLTYPE d3d10_stateblock_Release(ID3D10StateBlock *iface)
if (!refcount)
{
stateblock_cleanup(stateblock);
ID3D10Device_Release(stateblock->device);
HeapFree(GetProcessHeap(), 0, stateblock);
}