Do not leak the list of panes

This commit is contained in:
Cătălin Răceanu
2019-02-26 23:13:12 +02:00
parent c6354696d4
commit 595a9945b5
2 changed files with 4 additions and 3 deletions

View File

@@ -10,6 +10,8 @@
#include "wx/statusbr.h"
#include <QtCore/QScopedPointer>
class QLabel;
class QStatusBar;
@@ -45,7 +47,7 @@ private:
void UpdateFields();
QStatusBar *m_qtStatusBar;
QList< QLabel* > *m_qtPanes;
QScopedPointer< QList<QLabel*> > m_qtPanes; // should this really be a pointer?
wxDECLARE_DYNAMIC_CLASS(wxStatusBar);
};