Code

remove extra unref; now ref/unref is done by show/hide; this used to stop this arenai...
[inkscape.git] / src / helper / png-write.cpp
index 84816ad9c7b52454a8176bb37d675e286026b72b..dd42e9ca1f6c8ecbc54daac727f354e739602825 100644 (file)
@@ -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