Added missed destroy for search_line
This commit is contained in:
parent
2a9190c27d
commit
c8cf11b11b
2 changed files with 4 additions and 3 deletions
src/slic3r/GUI
|
@ -431,8 +431,7 @@ void PopupSearchList::update_list(std::vector<SearchOptions::Filter>& filters)
|
||||||
// SearchCtrl
|
// SearchCtrl
|
||||||
//------------------------------------------
|
//------------------------------------------
|
||||||
|
|
||||||
SearchCtrl::SearchCtrl(wxWindow* parent):
|
SearchCtrl::SearchCtrl(wxWindow* parent)
|
||||||
parent(parent)
|
|
||||||
{
|
{
|
||||||
popup_win = new PopupSearchList(parent);
|
popup_win = new PopupSearchList(parent);
|
||||||
box_sizer = new wxBoxSizer(wxHORIZONTAL);
|
box_sizer = new wxBoxSizer(wxHORIZONTAL);
|
||||||
|
@ -451,6 +450,8 @@ SearchCtrl::SearchCtrl(wxWindow* parent):
|
||||||
|
|
||||||
SearchCtrl::~SearchCtrl()
|
SearchCtrl::~SearchCtrl()
|
||||||
{
|
{
|
||||||
|
if (search_line)
|
||||||
|
search_line->Destroy();
|
||||||
if (search_btn)
|
if (search_btn)
|
||||||
search_btn->Destroy();
|
search_btn->Destroy();
|
||||||
if (popup_win)
|
if (popup_win)
|
||||||
|
|
|
@ -149,7 +149,7 @@ private:
|
||||||
|
|
||||||
class SearchCtrl
|
class SearchCtrl
|
||||||
{
|
{
|
||||||
wxWindow* parent {nullptr};
|
// wxWindow* parent {nullptr};
|
||||||
wxBoxSizer* box_sizer {nullptr};
|
wxBoxSizer* box_sizer {nullptr};
|
||||||
wxTextCtrl* search_line {nullptr};
|
wxTextCtrl* search_line {nullptr};
|
||||||
ScalableButton* search_btn {nullptr};
|
ScalableButton* search_btn {nullptr};
|
||||||
|
|
Loading…
Add table
Reference in a new issue