aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-individual-store-channel.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-09-25 20:36:55 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-09-25 21:55:33 +0800
commit78ac77df184361b57a89170bf0472f71d197754f (patch)
treef9d8198a27579de94c974689c1695d8125d8d994 /libempathy-gtk/empathy-individual-store-channel.c
parentf4ebc8f15b96354f65023148465f8f88b55c1496 (diff)
downloadgsoc2013-empathy-78ac77df184361b57a89170bf0472f71d197754f.tar
gsoc2013-empathy-78ac77df184361b57a89170bf0472f71d197754f.tar.gz
gsoc2013-empathy-78ac77df184361b57a89170bf0472f71d197754f.tar.bz2
gsoc2013-empathy-78ac77df184361b57a89170bf0472f71d197754f.tar.lz
gsoc2013-empathy-78ac77df184361b57a89170bf0472f71d197754f.tar.xz
gsoc2013-empathy-78ac77df184361b57a89170bf0472f71d197754f.tar.zst
gsoc2013-empathy-78ac77df184361b57a89170bf0472f71d197754f.zip
individual-store-channel: don't steal pixbuf store reference
empathy_individual_store_get_individual_status_icon() doesn't return a reffed pixbuf so we have to ref it explicitly. https://bugzilla.gnome.org/show_bug.cgi?id=708716
Diffstat (limited to 'libempathy-gtk/empathy-individual-store-channel.c')
-rw-r--r--libempathy-gtk/empathy-individual-store-channel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-individual-store-channel.c b/libempathy-gtk/empathy-individual-store-channel.c
index eb0f3f593..4064da054 100644
--- a/libempathy-gtk/empathy-individual-store-channel.c
+++ b/libempathy-gtk/empathy-individual-store-channel.c
@@ -171,6 +171,9 @@ individual_store_channel_contact_chat_state_changed (TpTextChannel *channel,
{
pixbuf = empathy_individual_store_get_individual_status_icon (
EMPATHY_INDIVIDUAL_STORE (self), individual);
+
+ /* Take a ref as the 'if' blocks creates a new pixbuf */
+ g_object_ref (pixbuf);
}
for (l = iters; l != NULL; l = l->next)