Commit 65530b6a authored by Ell's avatar Ell

Issue #3925 - Gimp from git master segfaults when showing preview of exported JPEG file

In file-jpeg-save, ref the file object when using a preview idle
to keep it alive.
parent 4fc34518
Pipeline #114424 passed with stages
in 13 minutes and 23 seconds
......@@ -223,6 +223,7 @@ background_jpeg_save (PreviewPersistent *pp)
/* we cleanup here (load_image doesn't run in the background) */
g_file_delete (pp->file, NULL, NULL);
g_object_unref (pp->file);
g_free (pp);
prev_p = NULL;
......@@ -671,7 +672,7 @@ save_image (GFile *file,
pp->buffer = buffer;
pp->format = format;
pp->src = NULL;
pp->file = file;
pp->file = g_object_ref (file);
pp->abort_me = FALSE;
g_warn_if_fail (prev_p == 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