From: Sean E. <sea...@us...> - 2002-09-16 18:14:42
|
Update of /cvsroot/gaim/gaim/src In directory usw-pr-cvs1:/tmp/cvs-serv11426/src Modified Files: prefs.c Log Message: Patrick Aussems patched up some minor prefs.c memleaks. Index: prefs.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/prefs.c,v retrieving revision 1.251 retrieving revision 1.252 diff -u -d -r1.251 -r1.252 --- prefs.c 16 Sep 2002 05:53:20 -0000 1.251 +++ prefs.c 16 Sep 2002 18:14:39 -0000 1.252 @@ -858,6 +858,8 @@ sound_options_new ^= sounds[soundnum].opt; gtk_list_store_set (GTK_LIST_STORE (model), &iter, 0, sound_options_new & sounds[soundnum].opt, -1); + + gtk_tree_path_free(path); } static void test_sound(GtkWidget *button, gpointer i_am_NULL) @@ -1018,6 +1020,7 @@ G_CALLBACK(event_toggled), event_store); path = gtk_tree_path_new_first(); gtk_tree_selection_select_path(sel, path); + gtk_tree_path_free(path); col = gtk_tree_view_column_new_with_attributes ("Play", rend, @@ -1100,6 +1103,7 @@ gtk_list_store_remove(GTK_LIST_STORE(ts), &iter); path = gtk_tree_path_new_first(); gtk_tree_selection_select_path(sel, path); + gtk_tree_path_free(path); } GtkWidget *away_message_page() { @@ -1112,7 +1116,6 @@ GtkCellRenderer *rend; GtkTreeViewColumn *col; GtkTreeSelection *sel; - GtkTreePath *path; GSList *awy = away_messages; struct away_message *a; GtkWidget *sw2; @@ -1163,7 +1166,6 @@ gaim_setup_imhtml(away_text); gtk_imhtml_set_defaults(GTK_IMHTML(away_text), NULL, NULL, NULL); sel = gtk_tree_view_get_selection (GTK_TREE_VIEW (event_view)); - path = gtk_tree_path_new_first(); g_signal_connect (G_OBJECT (sel), "changed", G_CALLBACK (away_message_sel), NULL); |