forked from enlightenment/efl
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:
parent
26a26f2304
commit
d8cab9347a
|
@ -1323,7 +1323,13 @@ ecore_evas_ews_engine_set(const char *engine, const char *options)
|
||||||
_ews_options = options ? strdup(options) : NULL;
|
_ews_options = options ? strdup(options) : NULL;
|
||||||
|
|
||||||
if ((engine) && (!_ews_engine)) return EINA_FALSE;
|
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;
|
_ews_defaults_engine = EINA_FALSE;
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
|
|
Loading…
Reference in New Issue