summaryrefslogtreecommitdiffstats
path: root/src/helper/png-write.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/helper/png-write.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/helper/png-write.cpp')
-rw-r--r--src/helper/png-write.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/helper/png-write.cpp b/src/helper/png-write.cpp
index 84816ad9c..dd42e9ca1 100644
--- a/src/helper/png-write.cpp
+++ b/src/helper/png-write.cpp
@@ -386,11 +386,10 @@ sp_export_png_file(SPDocument *doc, gchar const *filename,
g_free(ebp.px);
}
- // Hide items
+ // Hide items, this releases arenaitem
sp_item_invoke_hide(SP_ITEM(sp_document_root(doc)), dkey);
- /* Free Arena and ArenaItem */
- nr_arena_item_unref(ebp.root);
+ /* Free arena */
nr_object_unref((NRObject *) arena);
// restore saved blur quality