summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_clc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Clist_modern/src/modern_clc.cpp')
-rw-r--r--plugins/Clist_modern/src/modern_clc.cpp4
1 files changed, 3 insertions, 1 deletions
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);