From b44d0038a1513d5f95694d1bcfb5596c93d80366 Mon Sep 17 00:00:00 2001 From: Sebastian Dransfeld Date: Tue, 21 Dec 2010 03:05:37 +0000 Subject: [PATCH] Add del hook module unload will delete gadcons, so we need to cleanup in gadman as well. SVN revision: 55681 --- src/modules/gadman/e_mod_gadman.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/gadman/e_mod_gadman.c b/src/modules/gadman/e_mod_gadman.c index 48957bc..5777877 100644 --- a/src/modules/gadman/e_mod_gadman.c +++ b/src/modules/gadman/e_mod_gadman.c @@ -186,6 +186,7 @@ gadman_gadget_place(E_Config_Gadcon_Client *cf, Gadman_Layer_Type layer, E_Zone /* init Gadcon_Client */ gcc = cc->func.init(gc, cf->name, cf->id, cc->default_style); if (!gcc) return NULL; + e_object_del_func_set(E_OBJECT(gcc), E_OBJECT_CLEANUP_FUNC(gadman_gadget_del)); gcc->cf = cf; gcc->client_class = cc; -- 2.7.4