Code

Pot and Dutch translation update
[inkscape.git] / src / profile-manager.cpp
index 75fd12e4b559685c3b12b7b5aa03cf032e00a290..b70926947605ea5c8f14a06a5772e67c191c26de 100644 (file)
@@ -14,7 +14,7 @@
 
 namespace Inkscape {
 
-ProfileManager::ProfileManager(Document *document) :
+ProfileManager::ProfileManager(SPDocument *document) :
     _doc(document),
     _knownProfiles()
 {
@@ -23,6 +23,8 @@ ProfileManager::ProfileManager(Document *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 :