mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-31 11:41:57 +08:00
GalleryDialog: Fixed a memory leak
This commit is contained in:
parent
6215393ae5
commit
8a1a5d2259
@ -134,7 +134,12 @@ GalleryDialog::GalleryDialog(wxWindow* parent) :
|
||||
}
|
||||
|
||||
GalleryDialog::~GalleryDialog()
|
||||
{
|
||||
{
|
||||
// From wxWidgets docs:
|
||||
// The method void wxListCtrl::SetImageList(wxImageList* imageList, int which)
|
||||
// does not take ownership of the image list, you have to delete it yourself.
|
||||
if (m_image_list)
|
||||
delete m_image_list;
|
||||
}
|
||||
|
||||
int GalleryDialog::show(bool show_from_menu)
|
||||
|
Loading…
x
Reference in New Issue
Block a user