bo: Check null return from _cairo_malloc_ab() (CID #1159556)
commit37655af38d320336fe00894dbc2e47d16ea58497
authorBryce Harrington <bryce@bryceharrington.org>
Wed, 6 Jun 2018 17:32:37 +0000 (6 10:32 -0700)
committerBryce Harrington <bryce@bryceharrington.org>
Wed, 13 Jun 2018 22:21:50 +0000 (13 15:21 -0700)
tree75fcc4ac6885902ff65165b0e266b26e7c51b207
parent9d2e3646fa04c98747ae3b05a9be433eda7f2730
bo: Check null return from _cairo_malloc_ab() (CID #1159556)

_cairo_malloc_ab() can return NULL under some circumstances, and all
other callers of this routine in the Cairo codebase check its return, so
do so here as well.

Coverity ID: #1159556
Signed-off-by: Bryce Harrington <bryce@bryceharrington.org>
Reviewed-by: Uli Schlachter <psychon@znc.in>
src/cairo-bentley-ottmann.c