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
|
#endif
|
||||||
|
|
||||||
inst = gcc->data;
|
inst = gcc->data;
|
||||||
battery_config->instances =
|
if (battery_config)
|
||||||
eina_list_remove(battery_config->instances, inst);
|
battery_config->instances =
|
||||||
|
eina_list_remove(battery_config->instances, inst);
|
||||||
evas_object_del(inst->o_battery);
|
evas_object_del(inst->o_battery);
|
||||||
if (inst->warning)
|
if (inst->warning)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue