ref: 82cce09a19199b62fd67a9307b64fd96d7ede33b
parent: 014b0a06d1d6f3791f70805df09e5c544e7e3d02
author: Janne Grunau <[email protected]>
date: Mon Nov 5 18:38:42 EST 2018
do not use the picture after an allocation error
--- a/src/picture.c
+++ b/src/picture.c
@@ -161,6 +161,7 @@
picture_alloc_with_edges(&p->p, w, h, layout, bpc, p_allocator,
t != NULL ? sizeof(atomic_int) * 2 : 0,
(void **) &p->progress);
+ if (res) return res;
p->visible = visible;
p->flushed = 0;