Commit e4a2f220 authored by skal's avatar skal Committed by Jehan

Bug 769959 - crash during WebP file loading

WebPDataClear() was called on already-free'd data.
parent 9e9cd496
......@@ -149,9 +149,6 @@ load_image (const gchar *filename,
/* Attempt to decode the data as a WebP image */
outdata = WebPDecodeRGBA (indata, indatalen, &width, &height);
/* Free the original compressed data */
g_free (indata);
/* Check to ensure the image data was loaded correctly */
if (! outdata)
return -1;
......@@ -208,7 +205,8 @@ load_image (const gchar *filename,
}
}
WebPDataClear (&wp_data);
/* Free the original compressed data */
g_free (indata);
if (icc)
{
......
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