forked from enlightenment/enlightenment
fix crash in battery gadget when deleting a gadget after module has been unloaded (possible if gadget is in edit mode)
SVN revision: 78523
This commit is contained in:
parent
fcc39ead41
commit
303a69346a
|
@ -115,8 +115,9 @@ _gc_shutdown(E_Gadcon_Client *gcc)
|
|||
#endif
|
||||
|
||||
inst = gcc->data;
|
||||
battery_config->instances =
|
||||
eina_list_remove(battery_config->instances, inst);
|
||||
if (battery_config)
|
||||
battery_config->instances =
|
||||
eina_list_remove(battery_config->instances, inst);
|
||||
evas_object_del(inst->o_battery);
|
||||
if (inst->warning)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue