From 69cf37d70723dca2edec3d8f5aecee35a97ebb1c Mon Sep 17 00:00:00 2001 From: bulia byak Date: Tue, 16 Sep 2008 16:31:48 +0000 Subject: 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) --- src/print.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/print.cpp') 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; -- cgit v1.2.3