forked from enlightenment/efl
evas engine: add null point exception.
Sometimes the data parameter can be null. It makes a segment fault. test: evas_new > add method_output as buffer > evas_free @fix
This commit is contained in:
parent
dc1476ee09
commit
8f9eb82991
|
@ -169,9 +169,11 @@ eng_output_free(void *data)
|
||||||
{
|
{
|
||||||
Render_Engine *re;
|
Render_Engine *re;
|
||||||
|
|
||||||
re = (Render_Engine *)data;
|
if ((re = (Render_Engine *)data))
|
||||||
|
{
|
||||||
evas_render_engine_software_generic_clean(&re->generic);
|
evas_render_engine_software_generic_clean(&re->generic);
|
||||||
free(re);
|
free(re);
|
||||||
|
}
|
||||||
|
|
||||||
evas_common_shutdown();
|
evas_common_shutdown();
|
||||||
}
|
}
|
||||||
|
@ -181,7 +183,7 @@ eng_canvas_alpha_get(void *data, void *context EINA_UNUSED)
|
||||||
{
|
{
|
||||||
Render_Engine *re;
|
Render_Engine *re;
|
||||||
|
|
||||||
re = (Render_Engine *)data;
|
if ((re = (Render_Engine *)data))
|
||||||
if (re->generic.ob->priv.back_buf)
|
if (re->generic.ob->priv.back_buf)
|
||||||
return re->generic.ob->priv.back_buf->cache_entry.flags.alpha;
|
return re->generic.ob->priv.back_buf->cache_entry.flags.alpha;
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
|
|
Loading…
Reference in New Issue