summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2006-04-29 06:46:25 +0000
committermental <mental@users.sourceforge.net>2006-04-29 06:46:25 +0000
commitd1bcf41b70845abc0682415763736e733d4a72c2 (patch)
tree4e38e9e6e354b0097deba228a30493de10cf883f
parentadded refcount logging to GC::Anchored and shared string printf in util (diff)
downloadinkscape-d1bcf41b70845abc0682415763736e733d4a72c2.tar.gz
inkscape-d1bcf41b70845abc0682415763736e733d4a72c2.zip
add missing unref, which should hopefully address the document leak
(bzr r615)
-rw-r--r--ChangeLog4
-rw-r--r--src/ui/view/view.cpp1
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index bce69ca67..d4d316430 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2006-04-29 MenTaLguY <mental@rydia.net>
+ * src/ui/view/view.cpp: add missing unref
+
+2006-04-29 MenTaLguY <mental@rydia.net>
+
* src/gc-anchored.cpp, src/gc-anchored.h:
added refcount logging to GC::Anchored
diff --git a/src/ui/view/view.cpp b/src/ui/view/view.cpp
index 0f7fd9195..48c48c750 100644
--- a/src/ui/view/view.cpp
+++ b/src/ui/view/view.cpp
@@ -97,6 +97,7 @@ void View::_close() {
if (_doc) {
_document_uri_set_connection.disconnect();
_document_resized_connection.disconnect();
+ sp_document_unref(_doc);
_doc = 0;
}