From ee02e3e2da01c356c6883fa51b2d5cf1cac7318c Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 2 May 2011 10:04:22 +0200 Subject: main_window_flash_foreach: don't leak the pixbuf returned by empathy_pixbuf_from_icon_name --- src/empathy-main-window.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c index b4c1254df..851a424ea 100644 --- a/src/empathy-main-window.c +++ b/src/empathy-main-window.c @@ -220,6 +220,8 @@ main_window_flash_foreach (GtkTreeModel *model, pixbuf = empathy_individual_store_get_individual_status_icon ( GET_PRIV (data->window)->individual_store, individual); + if (pixbuf != NULL) + g_object_ref (pixbuf); } gtk_tree_store_set (GTK_TREE_STORE (model), iter, @@ -240,6 +242,7 @@ main_window_flash_foreach (GtkTreeModel *model, g_object_unref (individual); tp_clear_object (&contact); + tp_clear_object (&pixbuf); return FALSE; } -- cgit v1.2.3