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:
parent
fa94223511
commit
dc0310c029
|
@ -274,6 +274,7 @@ static ULONG STDMETHODCALLTYPE d3d10_stateblock_Release(ID3D10StateBlock *iface)
|
||||||
if (!refcount)
|
if (!refcount)
|
||||||
{
|
{
|
||||||
stateblock_cleanup(stateblock);
|
stateblock_cleanup(stateblock);
|
||||||
|
ID3D10Device_Release(stateblock->device);
|
||||||
HeapFree(GetProcessHeap(), 0, stateblock);
|
HeapFree(GetProcessHeap(), 0, stateblock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue