diff options
| author | James Collier <james.collier412@gmail.com> | 2019-05-11 20:33:08 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2019-06-20 13:43:47 +0000 |
| commit | b38c955a62b424e21fdec295a87d04bb5efd0889 (patch) | |
| tree | e0ceda4163efbd1e2a696a553c7d4ccaf6817054 /src/extension/internal | |
| parent | Display an error dialog when image is too large for WMF (diff) | |
| download | inkscape-b38c955a62b424e21fdec295a87d04bb5efd0889.tar.gz inkscape-b38c955a62b424e21fdec295a87d04bb5efd0889.zip | |
Ensure arena is released when the WMF failes to save
Diffstat (limited to 'src/extension/internal')
| -rw-r--r-- | src/extension/internal/wmf-inout.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/extension/internal/wmf-inout.cpp b/src/extension/internal/wmf-inout.cpp index 8e49050fa..c9b15e7ac 100644 --- a/src/extension/internal/wmf-inout.cpp +++ b/src/extension/internal/wmf-inout.cpp @@ -111,6 +111,9 @@ Wmf::print_document_to_file(SPDocument *doc, const gchar *filename) /* Print document */ if (mod->begin(doc)) { g_free(oldoutput); + mod->base->invoke_hide(mod->dkey); + mod->base = nullptr; + mod->root = nullptr; throw Inkscape::Extension::Output::save_failed(); } mod->base->invoke_print(&context); |
