libpurple/prefs.c

changeset 25447
46fd7b89b232
parent 25401
9be593758c72
parent 25399
be0015f97ea8
child 25448
caad1da6977e
--- a/libpurple/prefs.c	Tue Jan 20 04:31:14 2009 +0000
+++ b/libpurple/prefs.c	Tue Jan 20 04:38:22 2009 +0000
@@ -693,12 +693,15 @@
 	char *name;
 	GSList *l;
 
-	if(!pref || pref == &prefs)
+	if(!pref)
 		return;
 
 	while(pref->first_child)
 		remove_pref(pref->first_child);
 
+	if(pref == &prefs)
+		return;
+
 	if(pref->parent->first_child == pref) {
 		pref->parent->first_child = pref->sibling;
 	} else {
@@ -1453,4 +1456,8 @@
 
 
 	prefs_loaded = FALSE;
+	purple_prefs_destroy();
+	g_hash_table_destroy(prefs_hash);
+	prefs_hash = NULL;
+
 }

mercurial