Commit 40d4f9b7 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Don't leak WineD3DAdapter.cfgs.

parent ddae1416
......@@ -370,6 +370,12 @@ static ULONG WINAPI IWineD3DImpl_Release(IWineD3D *iface) {
TRACE("(%p) : Releasing from %d\n", This, This->ref);
ref = InterlockedDecrement(&This->ref);
if (ref == 0) {
unsigned int i;
for (i = 0; i < This->adapter_count; ++i)
{
HeapFree(GetProcessHeap(), 0, This->adapters[i].cfgs);
}
HeapFree(GetProcessHeap(), 0, This);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment