Christian Costa : d3dxof: Release allocated xobjects.

Alexandre Julliard julliard at winehq.org
Wed Dec 24 13:18:33 CST 2008


Module: wine
Branch: master
Commit: d0e37532cae8897d4320c06483347be9dac96c78
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d0e37532cae8897d4320c06483347be9dac96c78

Author: Christian Costa <titan.costa at wanadoo.fr>
Date:   Wed Dec 24 11:03:33 2008 +0100

d3dxof: Release allocated xobjects.

---

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

diff --git a/dlls/d3dxof/d3dxof.c b/dlls/d3dxof/d3dxof.c
index 46f3db9..e0e4774 100644
--- a/dlls/d3dxof/d3dxof.c
+++ b/dlls/d3dxof/d3dxof.c
@@ -1911,7 +1911,10 @@ static ULONG WINAPI IDirectXFileEnumObjectImpl_Release(IDirectXFileEnumObject* i
   {
     int i;
     for (i = 0; i < This->nb_xobjects; i++)
+    {
       IDirectXFileData_Release(This->pRefObjects[i]);
+      HeapFree(GetProcessHeap(), 0, This->xobjects[i]);
+    }
     if (This->source == DXFILELOAD_FROMFILE)
       HeapFree(GetProcessHeap(), 0, This->buf.buffer);
     if (This->hFile != INVALID_HANDLE_VALUE)




More information about the wine-cvs mailing list