Fix wxFileHistory memory leak in the sample
We need to delete the object we allocate.
This commit is contained in:
@@ -748,6 +748,7 @@ MyFrame::MyFrame()
|
||||
|
||||
MyFrame::~MyFrame()
|
||||
{
|
||||
delete m_fileHistory;
|
||||
delete m_menu;
|
||||
|
||||
// delete the event handler installed in ctor
|
||||
|
Reference in New Issue
Block a user