remove gadcons from custom populate job during deletion

this showed up on my valgrind radar while xrandring, so it's safety time
This commit is contained in:
Mike Blumenkrantz 2013-10-07 04:15:18 +01:00
parent 54055e4125
commit 4446442163
1 changed files with 2 additions and 0 deletions

View File

@ -2011,6 +2011,8 @@ _e_gadcon_free(E_Gadcon *gc)
gadcons = eina_list_remove(gadcons, gc);
}
eina_list_free(gc->populated_classes);
if (custom_populate_requests)
custom_populate_requests = eina_list_remove(custom_populate_requests, gc);
if (gc->o_container) evas_object_del(gc->o_container);
eina_stringshare_del(gc->name);
eina_stringshare_del(gc->edje.swallow_name);