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:
Christopher Michael 2013-01-24 09:17:00 +00:00 committed by Christopher Michael
parent 8a7ba73169
commit 034721bcd8
1 changed files with 8 additions and 0 deletions

View File

@ -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;
}