GNOME Bugzilla – Bug 304626
gmenu-simple-editor crashes when changing a menu item
Last modified: 2005-05-18 12:28:31 UTC
with gnome-menus 2.11.1, when clicking on a menu item: ** (gmenu-simple-editor:13106): CRITICAL **: gmenu_tree_item_unref: assertion `item->refcount > 0' failed ** ERROR **: file gmenu-tree.c: line 3813 (gmenu_tree_force_rebuild): assertion failed: (tree->layout != NULL) The editor is closed but the change works backtrace: Program received signal SIGABRT, Aborted.
+ Trace 59852
Thread NaN (LWP 18845)
Thanks: 2005-05-18 Mark McLoughlin <mark@skynet.ie> Fix crasher in bug #304626 * libmenu/gmenu-tree.c: (gmenu_tree_directory_set_tree): add helper function. (gmenu_tree_directory_new): don't take a ref on the tree. (gmenu_tree_directory_finalize): don't unref the tree. (gmenu_tree_build_from_layout): set the tree on the root directory here. (gmenu_tree_force_rebuild): unset it here.