forked from qt-creator/qt-creator
Fix some memory leaks
Found by Address Sanitizer. Change-Id: I989da71e24d737e36a88b83a1f382ce2d67e3307 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -131,6 +131,7 @@ class DebuggerMainWindowPrivate : public QObject
|
||||
{
|
||||
public:
|
||||
DebuggerMainWindowPrivate(DebuggerMainWindow *parent);
|
||||
~DebuggerMainWindowPrivate();
|
||||
|
||||
void selectPerspective(Perspective *perspective);
|
||||
void depopulateCurrentPerspective();
|
||||
@@ -256,6 +257,11 @@ DebuggerMainWindowPrivate::DebuggerMainWindowPrivate(DebuggerMainWindow *parent)
|
||||
});
|
||||
}
|
||||
|
||||
DebuggerMainWindowPrivate::~DebuggerMainWindowPrivate()
|
||||
{
|
||||
delete m_editorPlaceHolder;
|
||||
}
|
||||
|
||||
DebuggerMainWindow::DebuggerMainWindow()
|
||||
: d(new DebuggerMainWindowPrivate(this))
|
||||
{
|
||||
|
||||
@@ -220,6 +220,14 @@ DebuggerRunConfigurationAspect::DebuggerRunConfigurationAspect(Target *target)
|
||||
m_overrideStartupAspect->setLabelText(tr("Additional startup commands:"));
|
||||
}
|
||||
|
||||
DebuggerRunConfigurationAspect::~DebuggerRunConfigurationAspect()
|
||||
{
|
||||
delete m_cppAspect;
|
||||
delete m_qmlAspect;
|
||||
delete m_multiProcessAspect;
|
||||
delete m_overrideStartupAspect;
|
||||
}
|
||||
|
||||
void DebuggerRunConfigurationAspect::setUseQmlDebugger(bool value)
|
||||
{
|
||||
m_qmlAspect->setValue(value);
|
||||
|
||||
@@ -42,6 +42,7 @@ class DEBUGGER_EXPORT DebuggerRunConfigurationAspect
|
||||
|
||||
public:
|
||||
DebuggerRunConfigurationAspect(ProjectExplorer::Target *target);
|
||||
~DebuggerRunConfigurationAspect();
|
||||
|
||||
void fromMap(const QVariantMap &map) override;
|
||||
void toMap(QVariantMap &map) const override;
|
||||
|
||||
Reference in New Issue
Block a user