[2/2] scrrun: Fix file object leak on destruction.
Dmitry Timoshkov
dmitry at baikal.ru
Wed Jan 29 23:20:03 CST 2014
---
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;
}
--
1.8.5.3
More information about the wine-patches
mailing list