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
|
class PerspectivePrivate
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
~PerspectivePrivate();
|
||||||
|
|
||||||
void showInnerToolBar();
|
void showInnerToolBar();
|
||||||
void hideInnerToolBar();
|
void hideInnerToolBar();
|
||||||
void restoreLayout();
|
void restoreLayout();
|
||||||
@@ -849,6 +851,12 @@ Context PerspectivePrivate::context() const
|
|||||||
return Context(Id::fromName(m_id.toUtf8()));
|
return Context(Id::fromName(m_id.toUtf8()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PerspectivePrivate::~PerspectivePrivate()
|
||||||
|
{
|
||||||
|
for (const DockOperation &op : qAsConst(m_dockOperations))
|
||||||
|
delete op.widget;
|
||||||
|
}
|
||||||
|
|
||||||
void PerspectivePrivate::showInnerToolBar()
|
void PerspectivePrivate::showInnerToolBar()
|
||||||
{
|
{
|
||||||
m_innerToolBar->setVisible(true);
|
m_innerToolBar->setVisible(true);
|
||||||
|
Reference in New Issue
Block a user