Commit 4590dc48 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

wined3d: Free buffer conversion info when freeing the buffer.

parent b4679dc8
......@@ -622,6 +622,14 @@ static void STDMETHODCALLTYPE buffer_UnLoad(IWineD3DBuffer *iface)
This->flags |= WINED3D_BUFFER_CREATEBO; /* Recreate the buffer object next load */
context_release(context);
HeapFree(GetProcessHeap(), 0, This->conversion_shift);
This->conversion_shift = NULL;
HeapFree(GetProcessHeap(), 0, This->conversion_map);
This->conversion_map = NULL;
This->stride = 0;
This->conversion_stride = 0;
This->flags &= ~WINED3D_BUFFER_HASDESC;
}
}
......
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