mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-13 16:49:03 +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);
|
topSizer->SetSizeHints(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SearchDialog::~SearchDialog()
|
||||||
|
{
|
||||||
|
if (search_list_model)
|
||||||
|
search_list_model->DecRef();
|
||||||
|
}
|
||||||
|
|
||||||
void SearchDialog::Popup(wxPoint position /*= wxDefaultPosition*/)
|
void SearchDialog::Popup(wxPoint position /*= wxDefaultPosition*/)
|
||||||
{
|
{
|
||||||
const std::string& line = searcher->search_string();
|
const std::string& line = searcher->search_string();
|
||||||
|
@ -182,7 +182,7 @@ class SearchDialog : public GUI::DPIDialog
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
SearchDialog(OptionsSearcher* searcher);
|
SearchDialog(OptionsSearcher* searcher);
|
||||||
~SearchDialog() {}
|
~SearchDialog();
|
||||||
|
|
||||||
void Popup(wxPoint position = wxDefaultPosition);
|
void Popup(wxPoint position = wxDefaultPosition);
|
||||||
void ProcessSelection(wxDataViewItem selection);
|
void ProcessSelection(wxDataViewItem selection);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user