summaryrefslogtreecommitdiff
path: root/src/modules/conf
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-09-03 08:30:39 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-09-03 08:30:39 +0000
commit4c0fa2d381687105e3cb715d042950508d55dbb1 (patch)
tree96cd5d806a70e0699604112a5953dd2806ed7f7f /src/modules/conf
parent292c3dc5d60c48a56a918c06a677c03fbd8d2f24 (diff)
downloadenlightenment-4c0fa2d381687105e3cb715d042950508d55dbb1.tar.gz
big roundup commit fixing leaky submenus
SVN revision: 75973
Diffstat (limited to 'src/modules/conf')
-rw-r--r--src/modules/conf/e_mod_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/conf/e_mod_main.c b/src/modules/conf/e_mod_main.c
index a0af6efbf3..b3586a62e3 100644
--- a/src/modules/conf/e_mod_main.c
+++ b/src/modules/conf/e_mod_main.c
@@ -231,6 +231,7 @@ _config_all_pre_activate_cb(void *data __UNUSED__, E_Menu *m)
e_menu_item_callback_set(mi, _config_item_activate_cb, ecat);
sub = e_menu_new();
e_menu_item_submenu_set(mi, sub);
+ e_object_unref(E_OBJECT(sub));
e_menu_pre_activate_callback_set(sub, _config_pre_activate_cb, ecat);
}
}
@@ -250,6 +251,7 @@ e_mod_config_menu_add(void *data __UNUSED__, E_Menu *m)
mi = e_menu_item_new(m);
e_menu_item_label_set(mi, _("All"));
e_menu_item_submenu_set(mi, sub);
+ e_object_unref(E_OBJECT(sub));
}
/* module setup */
@@ -455,6 +457,7 @@ _e_mod_menu_add(void *data __UNUSED__, E_Menu *m)
e_menu_item_label_set(mi, _("Modes"));
e_util_menu_item_theme_icon_set(mi, "preferences-modes");
e_menu_item_submenu_set(mi, _e_mod_submenu_modes_get());
+ e_object_unref(E_OBJECT(mi->submenu));
}
static void