Fixed a memleak in DIALOG_CHOOSE_COMPONENT
This commit is contained in:
parent
e98ae3e463
commit
b47a6e415b
|
@ -104,6 +104,17 @@ DIALOG_CHOOSE_COMPONENT::DIALOG_CHOOSE_COMPONENT(
|
|||
}
|
||||
|
||||
|
||||
DIALOG_CHOOSE_COMPONENT::~DIALOG_CHOOSE_COMPONENT()
|
||||
{
|
||||
// I am not sure the following two lines are necessary,
|
||||
// but they will not hurt anyone
|
||||
m_dbl_click_timer->Stop();
|
||||
Unbind( wxEVT_TIMER, &DIALOG_CHOOSE_COMPONENT::OnCloseTimer, this );
|
||||
|
||||
delete m_dbl_click_timer;
|
||||
}
|
||||
|
||||
|
||||
wxPanel* DIALOG_CHOOSE_COMPONENT::ConstructLeftPanel( wxWindow* aParent )
|
||||
{
|
||||
auto panel = new wxPanel( aParent );
|
||||
|
|
|
@ -97,6 +97,8 @@ public:
|
|||
CMP_TREE_MODEL_ADAPTER::PTR& aAdapter,
|
||||
int aDeMorganConvert );
|
||||
|
||||
~DIALOG_CHOOSE_COMPONENT();
|
||||
|
||||
/** Function GetSelectedAlias
|
||||
* To be called after this dialog returns from ShowModal().
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue