# HG changeset patch # User Elliott Sales de Andrade # Date 1261533079 0 # Node ID 9bf6fe097c9cce923bb02d209492cc9d88da703b # Parent aec354f08f7c360cd3ce38f42369ea8980afa180 Make sure all globals are NULL when the prefs page is destroyed. diff -r aec354f08f7c -r 9bf6fe097c9c 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 *