Commit bfbcce94 authored by Aki Koskinen's avatar Aki Koskinen

Fix a few memory leaks

Some raw pointers never got released.

These errors were found by running QtCreator via Valgrind.

Change-Id: I9c5b2862b98597f3e468d573e7126d7d9ec46b05
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
parent 566aaba9
......@@ -189,6 +189,7 @@ void DesignMode::unregisterDesignWidget(QWidget *widget)
foreach (DesignEditorInfo *info, d->m_editors) {
if (info->widget == widget) {
d->m_editors.removeAll(info);
delete info;
break;
}
}
......
......@@ -84,6 +84,11 @@ CrumbleBar::CrumbleBar(QObject *parent) :
updateVisibility();
}
CrumbleBar::~CrumbleBar()
{
delete m_crumblePath;
}
void CrumbleBar::pushFile(const QString &fileName)
{
if (m_isInternalCalled == false) {
......
......@@ -42,6 +42,7 @@ class CrumbleBar : public QObject
Q_OBJECT
public:
explicit CrumbleBar(QObject *parent = 0);
~CrumbleBar();
void pushFile(const QString &fileName);
void pushInFileComponent(const ModelNode &modelNode);
......
......@@ -71,6 +71,7 @@ QnxConfigurationManager::~QnxConfigurationManager()
{
m_instance = 0;
qDeleteAll(m_configurations);
delete m_writer;
}
QList<QnxConfiguration *> QnxConfigurationManager::configurations() const
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment