Dmitry Timoshkov : scrrun: Fix file object leak on destruction.

Alexandre Julliard julliard at winehq.org
Thu Jan 30 13:25:26 CST 2014


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

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Thu Jan 30 14:20:03 2014 +0900

scrrun: Fix file object leak on destruction.

---

 dlls/scrrun/filesystem.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/scrrun/filesystem.c b/dlls/scrrun/filesystem.c
index 41cb51f..59add71 100644
--- a/dlls/scrrun/filesystem.c
+++ b/dlls/scrrun/filesystem.c
@@ -1522,7 +1522,10 @@ static ULONG WINAPI file_Release(IFile *iface)
     TRACE("(%p) ref=%d\n", This, ref);
 
     if(!ref)
+    {
         heap_free(This->path);
+        heap_free(This);
+    }
 
     return ref;
 }




More information about the wine-cvs mailing list