Commit 74604458 authored by James Collier's avatar James Collier Committed by Nathan Lee

Ensure arena is released when the WMF failes to save

(backported from b38c955a)
parent 96a591cf
Pipeline #68683942 passed with stages
in 8 minutes and 34 seconds
......@@ -115,6 +115,9 @@ Wmf::print_document_to_file(SPDocument *doc, const gchar *filename)
/* Print document */
if (mod->begin(doc)) {
mod->base = NULL;
mod->root = NULL;
throw Inkscape::Extension::Output::save_failed();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment