Commit d3c9c1d5 authored by Guillaume Desmottes's avatar Guillaume Desmottes

main_window_flash_foreach: don't leak the pixbuf returned by empathy_pixbuf_from_icon_name

parent 8562c5e1
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment