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:
Seunghun Lee 2014-04-03 19:23:57 +09:00 committed by Carsten Haitzler (Rasterman)
parent 95a8fed0bf
commit 4d8920df06
1 changed files with 2 additions and 1 deletions

View File

@ -244,7 +244,8 @@ _gc_shutdown(E_Gadcon_Client *gcc)
Instance *inst;
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);
_pager_free(inst->pager);
free(inst);