mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 21:28:59 +08:00
SearchDialog: Fixed memory leak.
This commit is contained in:
parent
003232dfb6
commit
0027d4c5f1
@ -575,6 +575,12 @@ SearchDialog::SearchDialog(OptionsSearcher* searcher)
|
||||
topSizer->SetSizeHints(this);
|
||||
}
|
||||
|
||||
SearchDialog::~SearchDialog()
|
||||
{
|
||||
if (search_list_model)
|
||||
search_list_model->DecRef();
|
||||
}
|
||||
|
||||
void SearchDialog::Popup(wxPoint position /*= wxDefaultPosition*/)
|
||||
{
|
||||
const std::string& line = searcher->search_string();
|
||||
|
@ -182,7 +182,7 @@ class SearchDialog : public GUI::DPIDialog
|
||||
|
||||
public:
|
||||
SearchDialog(OptionsSearcher* searcher);
|
||||
~SearchDialog() {}
|
||||
~SearchDialog();
|
||||
|
||||
void Popup(wxPoint position = wxDefaultPosition);
|
||||
void ProcessSelection(wxDataViewItem selection);
|
||||
|
Loading…
x
Reference in New Issue
Block a user