commit | 82cce09a19199b62fd67a9307b64fd96d7ede33b | [log] [tgz] |
---|---|---|
author | Janne Grunau <janne-vlc@jannau.net> | Mon Nov 05 23:38:42 2018 +0100 |
committer | Janne Grunau <janne-vlc@jannau.net> | Tue Nov 06 23:02:21 2018 +0100 |
tree | 9b3c753773c0f5c6706dfcdd27007df117b724cd | |
parent | 014b0a06d1d6f3791f70805df09e5c544e7e3d02 [diff] |
do not use the picture after an allocation error
diff --git a/src/picture.c b/src/picture.c index 74fe7c8..4ab5e0e 100644 --- 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;