On 11/14/2011 23:11, Henri Verbeet wrote:
+static ULONG STDMETHODCALLTYPE d3d10_stateblock_Release(ID3D10StateBlock
*iface)
+{
+ struct d3d10_stateblock *stateblock = impl_from_ID3D10StateBlock(iface);
+ ULONG refcount = InterlockedIncrement(&stateblock->refcount);
+
+ TRACE("%p decreasing refcount to %u.\n", stateblock, refcount);
+
+ if (!refcount)
+ HeapFree(GetProcessHeap(), 0, stateblock);
+
+ return refcount;
+}
Decrement maybe?
