diff src/gtkstatusbox.c @ 11593:4b7fb30b8926

[gaim-migrate @ 13863] Some valgrinding fixes from Levi Bard. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Sun, 02 Oct 2005 23:40:59 +0000
parents 9f521a61ef58
children 5dbefebb20cb
line wrap: on
line diff
--- a/src/gtkstatusbox.c	Sun Oct 02 21:16:05 2005 +0000
+++ b/src/gtkstatusbox.c	Sun Oct 02 23:40:59 2005 +0000
@@ -221,6 +221,7 @@
 	GtkTextBuffer *buffer;
 	GdkPixbuf *pixbuf, *pixbuf2, *pixbuf3, *pixbuf4;
 	GtkIconSize icon_size;
+	GtkTreePath *path;
 
 	text_rend = gtk_cell_renderer_text_new();
 	icon_rend = gtk_cell_renderer_pixbuf_new();
@@ -262,7 +263,9 @@
 	gtk_combo_box_set_wrap_width(GTK_COMBO_BOX(status_box), 0);
 	gtk_list_store_append(status_box->store, &(status_box->iter));
 	gtk_gaim_status_box_refresh(status_box);
-	gtk_cell_view_set_displayed_row(GTK_CELL_VIEW(status_box->cell_view), gtk_tree_path_new_from_string("0"));
+	path = gtk_tree_path_new_from_string("0");
+	gtk_cell_view_set_displayed_row(GTK_CELL_VIEW(status_box->cell_view), path);
+	gtk_tree_path_free(path);
 	gtk_container_add(GTK_CONTAINER(status_box), status_box->cell_view);
 
 	status_box->icon_rend = gtk_cell_renderer_pixbuf_new();