ecore_evas_ews: add proper clean up when quit the func

@fix

Summary: add proper clean up when quit the func (as per Raster comment)

Reviewers: cedric, raster, jpeg, barbieri

Reviewed By: barbieri

Subscribers: raster, NikaWhite, myoungwoon, jpeg

Differential Revision: https://phab.enlightenment.org/D4175

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
Artem Popov 2016-08-19 15:39:52 -07:00 committed by Cedric BAIL
parent 26a26f2304
commit d8cab9347a
1 changed files with 7 additions and 1 deletions

View File

@ -1323,7 +1323,13 @@ ecore_evas_ews_engine_set(const char *engine, const char *options)
_ews_options = options ? strdup(options) : NULL;
if ((engine) && (!_ews_engine)) return EINA_FALSE;
if ((options) && (!_ews_options)) return EINA_FALSE;
if ((options) && (!_ews_options))
{
free(_ews_engine);
_ews_engine = NULL;
_ews_defaults_engine = EINA_TRUE;
return EINA_FALSE;
}
_ews_defaults_engine = EINA_FALSE;
return EINA_TRUE;