forked from enlightenment/efl
Add check to make sure output buffer creation worked.
Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 83250
This commit is contained in:
parent
8a7ba73169
commit
034721bcd8
|
@ -93,6 +93,14 @@ _output_engine_setup(int w, int h, unsigned int rotation, unsigned int depth, Ei
|
|||
}
|
||||
}
|
||||
|
||||
/* if creating an output buffer failed, then return NULL */
|
||||
if (!re->ob)
|
||||
{
|
||||
if (re->tb) evas_common_tilebuf_free(re->tb);
|
||||
free(re);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* return allocated render engine */
|
||||
return re;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue