mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Added missed destroy for search_line
This commit is contained in:
parent
2a9190c27d
commit
c8cf11b11b
2 changed files with 4 additions and 3 deletions
|
@ -431,8 +431,7 @@ void PopupSearchList::update_list(std::vector<SearchOptions::Filter>& filters)
|
|||
// SearchCtrl
|
||||
//------------------------------------------
|
||||
|
||||
SearchCtrl::SearchCtrl(wxWindow* parent):
|
||||
parent(parent)
|
||||
SearchCtrl::SearchCtrl(wxWindow* parent)
|
||||
{
|
||||
popup_win = new PopupSearchList(parent);
|
||||
box_sizer = new wxBoxSizer(wxHORIZONTAL);
|
||||
|
@ -451,6 +450,8 @@ SearchCtrl::SearchCtrl(wxWindow* parent):
|
|||
|
||||
SearchCtrl::~SearchCtrl()
|
||||
{
|
||||
if (search_line)
|
||||
search_line->Destroy();
|
||||
if (search_btn)
|
||||
search_btn->Destroy();
|
||||
if (popup_win)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue