summaryrefslogtreecommitdiffstats
path: root/src/print.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/print.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 '')
-rw-r--r--src/print.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/print.cpp b/src/print.cpp
index 7b032fe4e..044dffe34 100644
--- a/src/print.cpp
+++ b/src/print.cpp
@@ -113,7 +113,6 @@ sp_print_preview_document(SPDocument *doc)
/* Release arena */
sp_item_invoke_hide(mod->base, mod->dkey);
mod->base = NULL;
- nr_arena_item_unref(mod->root);
mod->root = NULL;
nr_object_unref((NRObject *) mod->arena);
mod->arena = NULL;
@@ -140,7 +139,6 @@ sp_print_document(Gtk::Window& parentWindow, SPDocument *doc)
// Release arena
sp_item_invoke_hide(base, dkey);
- nr_arena_item_unref(root);
nr_object_unref((NRObject *) arena);
}
@@ -175,7 +173,6 @@ sp_print_document_to_file(SPDocument *doc, gchar const *filename)
/* Release arena */
sp_item_invoke_hide(mod->base, mod->dkey);
mod->base = NULL;
- nr_arena_item_unref(mod->root);
mod->root = NULL;
nr_object_unref((NRObject *) mod->arena);
mod->arena = NULL;