summaryrefslogtreecommitdiffstats
path: root/src/desktop.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2008-09-16 16:31:48 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2008-09-16 16:31:48 +0000
commit69cf37d70723dca2edec3d8f5aecee35a97ebb1c (patch)
tree730a60bced14740cdff7f00dc6401ef11fc48e36 /src/desktop.cpp
parentremove unneeded ref, arenaitem is reffed when created on invoke_show and unre... (diff)
downloadinkscape-69cf37d70723dca2edec3d8f5aecee35a97ebb1c.tar.gz
inkscape-69cf37d70723dca2edec3d8f5aecee35a97ebb1c.zip
remove extra unref; now ref/unref is done by show/hide; this used to stop this arenaitem from leaking, but this is now fixed properly in SPItem
(bzr r6819)
Diffstat (limited to 'src/desktop.cpp')
-rw-r--r--src/desktop.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/desktop.cpp b/src/desktop.cpp
index 476f1e3d7..5267bca57 100644
--- a/src/desktop.cpp
+++ b/src/desktop.cpp
@@ -270,7 +270,6 @@ SPDesktop::init (SPNamedView *nv, SPCanvas *aCanvas)
SP_ITEM_SHOW_DISPLAY);
if (ai) {
nr_arena_item_add_child (SP_CANVAS_ARENA (drawing)->root, ai, NULL);
- nr_arena_item_unref (ai);
}
namedview->show(this);
@@ -1399,7 +1398,6 @@ SPDesktop::setDocument (SPDocument *doc)
SP_ITEM_SHOW_DISPLAY);
if (ai) {
nr_arena_item_add_child (SP_CANVAS_ARENA (drawing)->root, ai, NULL);
- nr_arena_item_unref (ai);
}
namedview->show(this);
/* Ugly hack */