remove gadcons from custom populate job during deletion
authorMike Blumenkrantz <m.blumenkran@samsung.com>
Mon, 7 Oct 2013 03:15:18 +0000 (04:15 +0100)
committerMike Blumenkrantz <m.blumenkran@samsung.com>
Mon, 7 Oct 2013 03:15:18 +0000 (04:15 +0100)
this showed up on my valgrind radar while xrandring, so it's safety time

src/bin/e_gadcon.c

index 919ec72..6e5cfff 100644 (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);