[PATCH 1/5] dxgi: Free the adapters array in dxgi_factory_Release() (Valgrind).

Henri Verbeet hverbeet at codeweavers.com
Wed Oct 21 03:33:57 CDT 2009


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

diff --git a/dlls/dxgi/factory.c b/dlls/dxgi/factory.c
index 667b2f7..33c1576 100644
--- a/dlls/dxgi/factory.c
+++ b/dlls/dxgi/factory.c
@@ -71,6 +71,7 @@ static ULONG STDMETHODCALLTYPE dxgi_factory_Release(IWineDXGIFactory *iface)
         {
             IDXGIAdapter_Release(This->adapters[i]);
         }
+        HeapFree(GetProcessHeap(), 0, This->adapters);
 
         EnterCriticalSection(&dxgi_cs);
         IWineD3D_Release(This->wined3d);
-- 
1.6.4.4




More information about the wine-patches mailing list