Commit 06186055 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

Theme: Delete on shutdown



Change-Id: I54a7122f72e3c13c239af1b4293b187cff5b1fd2
Reviewed-by: default avatarThorben Kroeger <thorbenkroeger@gmail.com>
Reviewed-by: default avatarAlessandro Portale <alessandro.portale@digia.com>
parent da203fbf
......@@ -58,7 +58,9 @@ Theme *creatorTheme()
void setCreatorTheme(Theme *theme)
{
// TODO: memory management of theme object
if (m_creatorTheme == theme)
return;
delete m_creatorTheme;
m_creatorTheme = theme;
}
......
......@@ -87,6 +87,7 @@ CorePlugin::~CorePlugin()
}
delete m_mainWindow;
setCreatorTheme(0);
}
void CorePlugin::parseArguments(const QStringList &arguments)
......
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