From 5a14d9e1e30ab348c38bd8fab99dcbf4fdc548b2 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Thu, 30 Jan 2014 14:20:03 +0900 Subject: [PATCH] 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 41cb51fdaee..59add7112ec 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; }