[PATCH 1/4] comdlg32: Release the returned imagelist.
Huw Davies
huw at codeweavers.com
Tue Apr 25 03:04:56 CDT 2017
Signed-off-by: Huw Davies <huw at codeweavers.com>
---
dlls/comdlg32/filedlg.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/comdlg32/filedlg.c b/dlls/comdlg32/filedlg.c
index 305ac62d72..16bc2efe01 100644
--- a/dlls/comdlg32/filedlg.c
+++ b/dlls/comdlg32/filedlg.c
@@ -72,6 +72,7 @@
#include "shlobj.h"
#include "filedlgbrowser.h"
#include "shlwapi.h"
+#include "commoncontrols.h"
#include "wine/unicode.h"
#include "wine/debug.h"
@@ -3299,6 +3300,7 @@ static LRESULT FILEDLG95_LOOKIN_DrawItem(LPDRAWITEMSTRUCT pDIStruct)
rectIcon.left,
rectIcon.top,
ILD_TRANSPARENT );
+ IImageList_Release((IImageList *)ilItemImage);
/* Draw the associated text */
TextOutW(pDIStruct->hDC,rectText.left,rectText.top,sfi.szDisplayName,lstrlenW(sfi.szDisplayName));
--
2.12.0
More information about the wine-patches
mailing list