Summary:
Add NULL type check in output_free of evas fb engine.
If engine setup is failed,
Render_Engine wil be NULL so output_free also need to
handling NULL check.
Test Plan:
It needs specific condition to reproduce,
engine of ecore_evas is set to fb, and setup is failed,
then Render_Engine is NULL, but ecore_evas_free will call
output_free in fb engine's evas_engine.c
Reviewers: raster, cedric, Hermet
Reviewed By: Hermet
Subscribers: cedric, seoz, eagleeye, singh.amitesh
Differential Revision: https://phab.enlightenment.org/D2743
{
Render_Engine *re;
- re = (Render_Engine *)data;
-
- evas_render_engine_software_generic_clean(&re->generic);
- free(re);
+ if (re = (Render_Engine *)data)
+ {
+ evas_render_engine_software_generic_clean(&re->generic);
+ free(re);
+ }
evas_common_shutdown();
}