diff options
| author | bulia byak <buliabyak@gmail.com> | 2008-09-16 16:31:48 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2008-09-16 16:31:48 +0000 |
| commit | 69cf37d70723dca2edec3d8f5aecee35a97ebb1c (patch) | |
| tree | 730a60bced14740cdff7f00dc6401ef11fc48e36 /src/helper/png-write.cpp | |
| parent | remove unneeded ref, arenaitem is reffed when created on invoke_show and unre... (diff) | |
| download | inkscape-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.cpp | 5 |
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 |
