wined3d: Free palette handle when destroying IWineD3DPaletteImpl.
This commit is contained in:
parent
659494660e
commit
83fe4e77f5
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue