Fix wxFileHistory memory leak in the sample
We need to delete the object we allocate.
This commit is contained in:
parent
979c1bccc9
commit
a77f390ae3
1 changed files with 1 additions and 0 deletions
|
|
@ -748,6 +748,7 @@ MyFrame::MyFrame()
|
|||
|
||||
MyFrame::~MyFrame()
|
||||
{
|
||||
delete m_fileHistory;
|
||||
delete m_menu;
|
||||
|
||||
// delete the event handler installed in ctor
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue