wayland: Check for potential OOM from wl_array_add()
authorBryce Harrington <bryce@osg.samsung.com>
Tue, 10 Mar 2015 06:07:38 +0000 (15:07 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Tue, 10 Mar 2015 06:07:38 +0000 (15:07 +0900)
commit13f4582c761d96d7404ffa2a3b95477bffbedc4a
tree426bdd28dbc858375aa4ef120f2e3fafc500b5c8
parentb7f3a81f59f91b3da07088477aa1e9305da3e755
wayland: Check for potential OOM from wl_array_add()

Summary:
wl_array_add() returns NULL if it can't malloc/realloc.  This
is probably unlikely but check for it and issue a meaningful error if it
occurs.

Reviewers: cedric, devilhorns, zmike, raster

Reviewed By: raster

Subscribers: raster, cedric

Differential Revision: https://phab.enlightenment.org/D2054
src/bin/e_comp_wl.c