Fix wxFileHistory memory leak in the sample

We need to delete the object we allocate.
This commit is contained in:
Vadim Zeitlin
2021-04-05 16:32:34 +02:00
parent 979c1bccc9
commit a77f390ae3

View File

@@ -748,6 +748,7 @@ MyFrame::MyFrame()
MyFrame::~MyFrame() MyFrame::~MyFrame()
{ {
delete m_fileHistory;
delete m_menu; delete m_menu;
// delete the event handler installed in ctor // delete the event handler installed in ctor