summaryrefslogtreecommitdiffstats
path: root/src/helper/png-write.cpp
diff options
context:
space:
mode:
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