From e9e09da819c2f3b3a6405048232f38649d567b4d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 23 Jul 2015 11:17:54 +0000 Subject: fix for incorrect Win API calls git-svn-id: http://svn.miranda-ng.org/main/trunk@14652 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Clist_modern/src/modern_clc.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/Clist_modern/src/modern_clc.cpp') diff --git a/plugins/Clist_modern/src/modern_clc.cpp b/plugins/Clist_modern/src/modern_clc.cpp index 2f31dc6777..34c9c76e16 100644 --- a/plugins/Clist_modern/src/modern_clc.cpp +++ b/plugins/Clist_modern/src/modern_clc.cpp @@ -1331,8 +1331,10 @@ static LRESULT clcOnDestroy(ClcData *dat, HWND hwnd, UINT msg, WPARAM wParam, LP ImageArray_Clear(&dat->avatar_cache); DeleteDC(dat->avatar_cache.hdc); ImageArray_Free(&dat->avatar_cache, FALSE); - if (dat->himlHighlight) + if (dat->himlHighlight) { ImageList_Destroy(dat->himlHighlight); + dat->himlHighlight = NULL; + } RowHeights_Free(dat); corecli.pfnContactListControlWndProc(hwnd, msg, wParam, lParam); -- cgit v1.2.3