wined3d: Free palette handle when destroying IWineD3DPaletteImpl.

This commit is contained in:
Alexander Dorofeyev 2007-12-30 18:03:35 -08:00 committed by Alexandre Julliard
parent 659494660e
commit 83fe4e77f5
1 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,7 @@ static ULONG WINAPI IWineD3DPaletteImpl_Release(IWineD3DPalette *iface) {
TRACE("(%p)->() decrementing from %u.\n", This, ref + 1);
if (!ref) {
DeleteObject(This->hpal);
HeapFree(GetProcessHeap(), 0, This);
return 0;
}