summaryrefslogtreecommitdiffstats
path: root/src/profile-manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/profile-manager.cpp')
-rw-r--r--src/profile-manager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/profile-manager.cpp b/src/profile-manager.cpp
index 1cd965e39..b70926947 100644
--- a/src/profile-manager.cpp
+++ b/src/profile-manager.cpp
@@ -23,6 +23,8 @@ ProfileManager::ProfileManager(SPDocument *document) :
ProfileManager::~ProfileManager()
{
+ _resource_connection.disconnect();
+ _doc = 0;
}
void ProfileManager::_resourcesChanged()
@@ -94,4 +96,4 @@ ColorProfile* ProfileManager::find(gchar const* name)
fill-column:99
End:
*/
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :