From 9dbdacbd824189fafe6d88075761c5309a3f551b Mon Sep 17 00:00:00 2001 From: Alexander Dorofeyev Date: Sun, 30 Dec 2007 18:03:42 -0800 Subject: [PATCH] ddraw: Release palette interfaces. --- dlls/ddraw/texture.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/ddraw/texture.c b/dlls/ddraw/texture.c index 0880154db7e..3f0ccc9e138 100644 --- a/dlls/ddraw/texture.c +++ b/dlls/ddraw/texture.c @@ -394,6 +394,9 @@ IDirect3DTextureImpl_Load(IDirect3DTexture2 *iface, } } + if (pal) IDirectDrawPalette_Release(pal); + if (pal_src) IDirectDrawPalette_Release(pal_src); + /* Copy one surface on the other */ dst_d = (DDSURFACEDESC *)&(This->surface_desc); src_d = (DDSURFACEDESC *)&(src_ptr->surface_desc);