[PATCH 3/3] Fix some string buffers leaks

Nikolay Sivov bunglehead at gmail.com
Thu Jan 7 07:00:50 CST 2010


---
 dlls/shell32/shelllink.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dlls/shell32/shelllink.c b/dlls/shell32/shelllink.c
index 6dd62a7..e304058 100644
--- a/dlls/shell32/shelllink.c
+++ b/dlls/shell32/shelllink.c
@@ -303,7 +303,10 @@ static ULONG ShellLink_Release( IShellLinkImpl *This )
     HeapFree(GetProcessHeap(), 0, This->sArgs);
     HeapFree(GetProcessHeap(), 0, This->sWorkDir);
     HeapFree(GetProcessHeap(), 0, This->sDescription);
-    HeapFree(GetProcessHeap(),0,This->sPath);
+    HeapFree(GetProcessHeap(), 0, This->sPath);
+    HeapFree(GetProcessHeap(), 0, This->sPathRel);
+    HeapFree(GetProcessHeap(), 0, This->sProduct);
+    HeapFree(GetProcessHeap(), 0, This->sComponent);
 
     if (This->site)
         IUnknown_Release( This->site );
-- 
1.5.6.5


--=-9mqt5/+abujcEDi8Axum--




More information about the wine-patches mailing list