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:
Mike Blumenkrantz 2012-10-26 11:43:07 +00:00
parent fcc39ead41
commit 303a69346a
1 changed files with 3 additions and 2 deletions

View File

@ -115,6 +115,7 @@ _gc_shutdown(E_Gadcon_Client *gcc)
#endif
inst = gcc->data;
if (battery_config)
battery_config->instances =
eina_list_remove(battery_config->instances, inst);
evas_object_del(inst->o_battery);