GE Debugger: Correct icon list cleanup on shutdown.

This commit is contained in:
Unknown W. Brackets 2022-02-09 19:04:38 -08:00
parent 695efe3729
commit 6064b77356

View file

@ -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<HICON> &icons) {