forked from qt-creator/qt-creator
Debugger: Fix memory leak
Change-Id: I3b9a4e220fe974e4d1bf82ad9f014a4a71a5b6b9 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user