summaryrefslogtreecommitdiff
path: root/nautilus-widgets
diff options
context:
space:
mode:
authorRamiro Estrugo <ramiro@src.gnome.org>2000-03-12 22:47:05 +0000
committerRamiro Estrugo <ramiro@src.gnome.org>2000-03-12 22:47:05 +0000
commit358ad2c9ca146cd591f1fe5c474278e861ac7b0c (patch)
tree2cd485838460bb684c9d0c00d6cdc91b71f8ed8b /nautilus-widgets
parent7398417988f1eeeac9a3f409fb5b1341dcd36883 (diff)
downloadnautilus-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.c7
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);
}
}