forked from enlightenment/enlightenment
fix crash when access pager_config which is null.
Summary: crash was happend when user do logout the enlightenment with pager16. pager_config was freed in e_modapi_shutdown(), but after that, there was accessing pager_config again in _gc_shutdown() by called gadman_shutdown(). Reviewers: zmike, raster, cedric, seoz CC: cedric Differential Revision: https://phab.enlightenment.org/D694
This commit is contained in:
parent
95a8fed0bf
commit
4d8920df06
|
@ -244,7 +244,8 @@ _gc_shutdown(E_Gadcon_Client *gcc)
|
||||||
Instance *inst;
|
Instance *inst;
|
||||||
|
|
||||||
inst = gcc->data;
|
inst = gcc->data;
|
||||||
pager_config->instances = eina_list_remove(pager_config->instances, inst);
|
if (pager_config)
|
||||||
|
pager_config->instances = eina_list_remove(pager_config->instances, inst);
|
||||||
e_drop_handler_del(inst->pager->drop_handler);
|
e_drop_handler_del(inst->pager->drop_handler);
|
||||||
_pager_free(inst->pager);
|
_pager_free(inst->pager);
|
||||||
free(inst);
|
free(inst);
|
||||||
|
|
Loading…
Reference in New Issue