aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-05-02 16:04:22 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-05-02 17:12:32 +0800
commitee02e3e2da01c356c6883fa51b2d5cf1cac7318c (patch)
tree78adb178c29bf5b7a018de10afa9273a2660a349 /src
parent7078e93bbcd562175248a8fdf752f2fa92f1171c (diff)
downloadgsoc2013-empathy-ee02e3e2da01c356c6883fa51b2d5cf1cac7318c.tar
gsoc2013-empathy-ee02e3e2da01c356c6883fa51b2d5cf1cac7318c.tar.gz
gsoc2013-empathy-ee02e3e2da01c356c6883fa51b2d5cf1cac7318c.tar.bz2
gsoc2013-empathy-ee02e3e2da01c356c6883fa51b2d5cf1cac7318c.tar.lz
gsoc2013-empathy-ee02e3e2da01c356c6883fa51b2d5cf1cac7318c.tar.xz
gsoc2013-empathy-ee02e3e2da01c356c6883fa51b2d5cf1cac7318c.tar.zst
gsoc2013-empathy-ee02e3e2da01c356c6883fa51b2d5cf1cac7318c.zip
main_window_flash_foreach: don't leak the pixbuf returned by empathy_pixbuf_from_icon_name
Diffstat (limited to 'src')
-rw-r--r--src/empathy-main-window.c3
1 files changed, 3 insertions, 0 deletions
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;
}