Commit 6cf2c82b authored by Thomas Holder's avatar Thomas Holder

fix PNG export dialog crash (heap-use-after-free)

Possibly related to inbox#1185
parent 13fe9f3d
Pipeline #97279615 failed with stages
in 57 minutes and 28 seconds
......@@ -439,11 +439,11 @@ void Export::set_default_filename () {
{
SPDocument * doc = SP_ACTIVE_DOCUMENT;
const gchar *uri = doc->getURI();
const gchar *text_extension = get_file_save_extension (Inkscape::Extension::FILE_SAVE_METHOD_SAVE_AS).c_str();
Glib::ustring text_extension = get_file_save_extension(Inkscape::Extension::FILE_SAVE_METHOD_SAVE_AS);
Inkscape::Extension::Output * oextension = NULL;
if (text_extension != NULL) {
oextension = dynamic_cast<Inkscape::Extension::Output *>(Inkscape::Extension::db.get(text_extension));
if (!text_extension.empty()) {
oextension = dynamic_cast<Inkscape::Extension::Output *>(Inkscape::Extension::db.get(text_extension.c_str()));
}
if (oextension != NULL) {
......
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