From 6064b77356c410a333028945d93ffecf8fd00404 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Wed, 9 Feb 2022 19:04:38 -0800 Subject: [PATCH] GE Debugger: Correct icon list cleanup on shutdown. --- Windows/W32Util/Misc.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Windows/W32Util/Misc.cpp b/Windows/W32Util/Misc.cpp index 7aee7d98ec..c2b1002795 100644 --- a/Windows/W32Util/Misc.cpp +++ b/Windows/W32Util/Misc.cpp @@ -204,8 +204,7 @@ GenericListControl::GenericListControl(HWND hwnd, const GenericListViewDef& def) } GenericListControl::~GenericListControl() { - if (images_ != nullptr) - ImageList_Destroy((HIMAGELIST)images_); + // Don't destroy the image list, it's done automatically by the list view. } void GenericListControl::SetIconList(int w, int h, const std::vector &icons) {