# HG changeset patch # User Daniel Atallah # Date 1232426386 0 # Node ID cf8c060cdd25e58489823ed0c16a352b04623dba # Parent 1563f269a714fb08ff93c37521eaa258574579b0 disapproval of revision 'd61c2fc82b19cd2629b498d903d7018d41a00108' Re-enable the prefs unint changes. Refs #7661. diff -r 1563f269a714 -r cf8c060cdd25 libpurple/core.c --- a/libpurple/core.c Fri Jan 09 03:57:01 2009 +0000 +++ b/libpurple/core.c Tue Jan 20 04:39:46 2009 +0000 @@ -137,7 +137,7 @@ * subsystem right away too. */ purple_plugins_init(); - + /* Initialize all static protocols. */ static_proto_init(); @@ -213,7 +213,6 @@ purple_accounts_uninit(); purple_savedstatuses_uninit(); purple_status_uninit(); - purple_prefs_uninit(); purple_sound_uninit(); purple_xfers_uninit(); purple_proxy_uninit(); @@ -244,6 +243,7 @@ #ifdef _WIN32 wpurple_cleanup(); #endif + purple_prefs_uninit(); _core = NULL; } diff -r 1563f269a714 -r cf8c060cdd25 libpurple/prefs.c --- a/libpurple/prefs.c Fri Jan 09 03:57:01 2009 +0000 +++ b/libpurple/prefs.c Tue Jan 20 04:39:46 2009 +0000 @@ -714,7 +714,8 @@ name = pref_full_name(pref); - purple_debug_info("prefs", "removing pref %s\n", name); + if (prefs_loaded) + purple_debug_info("prefs", "removing pref %s\n", name); g_hash_table_remove(prefs_hash, name); g_free(name); @@ -1453,7 +1454,7 @@ save_timer = 0; sync_prefs(); } - + prefs_loaded = FALSE; purple_prefs_disconnect_by_handle(purple_prefs_get_handle()); purple_prefs_destroy(); g_hash_table_destroy(prefs_hash);