[1/3] hhctrl.ocx: Don't leak the CHM filename.
Hans Leidekker
hans at meelstraat.net
Wed Jul 1 04:53:19 CDT 2009
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-patches
mailing list