Hans Leidekker : hhctrl.ocx: Don't leak the CHM filename.
Alexandre Julliard
julliard at winehq.org
Wed Jul 1 09:28:11 CDT 2009
Module: wine
Branch: master
Commit: abad7f4f76b6e4f094f10123b2b2ab6a4a4c3f7a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=abad7f4f76b6e4f094f10123b2b2ab6a4a4c3f7a
Author: Hans Leidekker <hans at meelstraat.net>
Date: Wed Jul 1 11:53:19 2009 +0200
hhctrl.ocx: Don't leak the CHM filename.
---
dlls/hhctrl.ocx/chm.c | 1 +
dlls/hhctrl.ocx/hhctrl.h | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/hhctrl.ocx/chm.c b/dlls/hhctrl.ocx/chm.c
index e8d036b..dbf174d 100644
--- a/dlls/hhctrl.ocx/chm.c
+++ b/dlls/hhctrl.ocx/chm.c
@@ -423,6 +423,7 @@ CHMInfo *CloseCHM(CHMInfo *chm)
heap_free(chm->defTitle);
heap_free(chm->defTopic);
heap_free(chm->defToc);
+ heap_free(chm->szFile);
heap_free(chm);
return NULL;
diff --git a/dlls/hhctrl.ocx/hhctrl.h b/dlls/hhctrl.ocx/hhctrl.h
index 795bea4..83d39f5 100644
--- a/dlls/hhctrl.ocx/hhctrl.h
+++ b/dlls/hhctrl.ocx/hhctrl.h
@@ -69,7 +69,7 @@ typedef struct CHMInfo
{
IITStorage *pITStorage;
IStorage *pStorage;
- LPCWSTR szFile;
+ WCHAR *szFile;
IStream *strings_stream;
char **strings;
More information about the wine-cvs
mailing list