wined3d: Free buffer conversion info when freeing the buffer.

This commit is contained in:
Stefan Dösinger 2009-12-23 14:15:49 +01:00 committed by Alexandre Julliard
parent b4679dc8fd
commit 4590dc4806
1 changed files with 8 additions and 0 deletions

View File

@ -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;
}
}