# HG changeset patch # User Elliott Sales de Andrade # Date 1261533079 0 # Node ID 6e6f7be71d5065fb28a1bf3335d8e856aecf3589 # Parent 773c9d17e6373d9845feb955a48ff3ecd2167367 Make sure all globals are NULL when the prefs page is destroyed. diff -r 773c9d17e637 -r 6e6f7be71d50 pidgin/gtkprefs.c --- a/pidgin/gtkprefs.c Wed Dec 23 01:37:07 2009 +0000 +++ b/pidgin/gtkprefs.c Wed Dec 23 01:51:19 2009 +0000 @@ -74,7 +74,7 @@ static GtkWidget *prefs = NULL; /* Notebook */ -static GtkWidget *prefsnotebook; +static GtkWidget *prefsnotebook = NULL; static int notebook_page = 0; /* Themes page */ @@ -336,9 +336,24 @@ /* Unregister callbacks. */ purple_prefs_disconnect_by_handle(prefs); - prefs = NULL; + /* NULL-ify globals */ sound_entry = NULL; + sound_row_sel = 0; + prefs_sound_themes_loading = FALSE; + + prefs_sound_themes = NULL; + prefs_blist_themes = NULL; + prefs_status_icon_themes = NULL; + prefs_smiley_themes = NULL; + + prefs_sound_themes_combo_box = NULL; + prefs_blist_themes_combo_box = NULL; + prefs_status_themes_combo_box = NULL; + prefs_smiley_themes_combo_box = NULL; + notebook_page = 0; + prefsnotebook = NULL; + prefs = NULL; } static gchar *