Commit 6928e893 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Free the previous user_image in case spectre_presize is called multiple times

parent 155777e3
Pipeline #328784 passed with stage
in 4 minutes and 36 seconds
......@@ -72,6 +72,7 @@ spectre_presize (void *handle, void *device, int width, int height,
sd->height = height;
sd->row_length = raster;
sd->gs_image = NULL;
sd->user_image = malloc (sd->row_length * sd->height);
return 0;
Supports Markdown
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