[PATCH 4/5] wined3d: Free the context array in IWineGDISwapChainImpl_Destroy() (Valgrind).

Henri Verbeet hverbeet at codeweavers.com
Thu Oct 22 03:09:56 CDT 2009


---
 dlls/wined3d/swapchain_gdi.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/swapchain_gdi.c b/dlls/wined3d/swapchain_gdi.c
index f4909bc..f795d89 100644
--- a/dlls/wined3d/swapchain_gdi.c
+++ b/dlls/wined3d/swapchain_gdi.c
@@ -70,6 +70,7 @@ static void WINAPI IWineGDISwapChainImpl_Destroy(IWineD3DSwapChain *iface)
         IWineD3DDevice_SetDisplayMode((IWineD3DDevice *) This->wineD3DDevice, 0, &mode);
     }
 
+    HeapFree(GetProcessHeap(), 0, This->context);
     HeapFree(GetProcessHeap(), 0, This);
 }
 
-- 
1.6.4.4




More information about the wine-patches mailing list