mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-18 19:12:17 +00:00
Added missed destroy for search_line
This commit is contained in:
@@ -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};
|
||||||
|
|||||||
Reference in New Issue
Block a user