diff options
author | Ramiro Estrugo <ramiro@src.gnome.org> | 2000-03-12 22:47:05 +0000 |
---|---|---|
committer | Ramiro Estrugo <ramiro@src.gnome.org> | 2000-03-12 22:47:05 +0000 |
commit | 358ad2c9ca146cd591f1fe5c474278e861ac7b0c (patch) | |
tree | 2cd485838460bb684c9d0c00d6cdc91b71f8ed8b /nautilus-widgets | |
parent | 7398417988f1eeeac9a3f409fb5b1341dcd36883 (diff) | |
download | nautilus-358ad2c9ca146cd591f1fe5c474278e861ac7b0c.tar.gz |
Properly remove the item from the list so that we dont crash later trying
* nautilus-widgets/nautilus-preferences.c:
(pref_hash_info_remove_callback) Properly remove the item from
the list so that we dont crash later trying to munge a NULL node.
* libnautilus/nautilus-global-preferences.h:
(NAUTILUS_PREFERENCES_USER_LEVEL) Make sure the user level
defaults to hacker.
Diffstat (limited to 'nautilus-widgets')
-rw-r--r-- | nautilus-widgets/nautilus-preferences.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nautilus-widgets/nautilus-preferences.c b/nautilus-widgets/nautilus-preferences.c index eae134c8f..9a38b6be4 100644 --- a/nautilus-widgets/nautilus-preferences.c +++ b/nautilus-widgets/nautilus-preferences.c @@ -267,9 +267,10 @@ pref_hash_info_remove_callback (PrefHashInfo *pref_hash_info, if (callback_info->callback_proc == callback_proc && callback_info->user_data == user_data) { - g_list_remove (pref_hash_info->callback_list, - (gpointer) callback_info); - + pref_hash_info->callback_list = + g_list_remove (pref_hash_info->callback_list, + (gpointer) callback_info); + pref_callback_info_free (callback_info); } } |