[empathy/gnome-2-34] main_window_flash_foreach: don't leak the pixbuf returned by empathy_pixbuf_from_icon_name
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy/gnome-2-34] main_window_flash_foreach: don't leak the pixbuf returned by empathy_pixbuf_from_icon_name
- Date: Mon, 2 May 2011 09:19:04 +0000 (UTC)
commit f6bdbd0bcafdc6dbad2fff389eedc9aa36a5fa1c
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Mon May 2 10:04:22 2011 +0200
main_window_flash_foreach: don't leak the pixbuf returned by empathy_pixbuf_from_icon_name
src/empathy-main-window.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c
index 864ef47..c93b25b 100644
--- a/src/empathy-main-window.c
+++ b/src/empathy-main-window.c
@@ -219,6 +219,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,
@@ -239,6 +241,7 @@ main_window_flash_foreach (GtkTreeModel *model,
g_object_unref (individual);
tp_clear_object (&contact);
+ tp_clear_object (&pixbuf);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]