Code

Fix self-snapping when dragging the transformation center of a selection containing...
[inkscape.git] / src / profile-manager.cpp
index 75fd12e4b559685c3b12b7b5aa03cf032e00a290..b5ac861e13b4665b5ae1bf313fe0b34db5f2d300 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()