mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-09-17 22:33:15 +08:00
GalleryDialog: Fixed a memory leak
This commit is contained in:
parent
6215393ae5
commit
8a1a5d2259
@ -135,6 +135,11 @@ GalleryDialog::GalleryDialog(wxWindow* parent) :
|
|||||||
|
|
||||||
GalleryDialog::~GalleryDialog()
|
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)
|
int GalleryDialog::show(bool show_from_menu)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user