Debugger: Fix memory leak

Change-Id: I3b9a4e220fe974e4d1bf82ad9f014a4a71a5b6b9
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2020-01-23 10:49:07 +01:00
parent 1a3965f025
commit 8265d1d710

View File

@@ -104,6 +104,8 @@ public:
class PerspectivePrivate
{
public:
~PerspectivePrivate();
void showInnerToolBar();
void hideInnerToolBar();
void restoreLayout();
@@ -849,6 +851,12 @@ Context PerspectivePrivate::context() const
return Context(Id::fromName(m_id.toUtf8()));
}
PerspectivePrivate::~PerspectivePrivate()
{
for (const DockOperation &op : qAsConst(m_dockOperations))
delete op.widget;
}
void PerspectivePrivate::showInnerToolBar()
{
m_innerToolBar->setVisible(true);