Commit 782e209a authored by Ell's avatar Ell

app: in abr_rle_decode(), avoid freeing NULL scratch buffers

... gegl_scratch_free() doesn't generally accept NULL pointers.
parent 07f95291
......@@ -1193,16 +1193,16 @@ abr_rle_decode (GDataInputStream *input,
}
}
gegl_scratch_free (cdata);
g_clear_pointer (&cdata, gegl_scratch_free);
}
gegl_scratch_free (cscanline_len);
g_clear_pointer (&cscanline_len, gegl_scratch_free);
return TRUE;
err:
gegl_scratch_free (cdata);
gegl_scratch_free (cscanline_len);
g_clear_pointer (&cdata, gegl_scratch_free);
g_clear_pointer (&cscanline_len, gegl_scratch_free);
if (error && ! *error)
{
g_set_error (error, GIMP_DATA_ERROR, GIMP_DATA_ERROR_READ,
......
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