From 78ac77df184361b57a89170bf0472f71d197754f Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 25 Sep 2013 14:36:55 +0200 Subject: [PATCH] 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 --- libempathy-gtk/empathy-individual-store-channel.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libempathy-gtk/empathy-individual-store-channel.c b/libempathy-gtk/empathy-individual-store-channel.c index eb0f3f59..4064da05 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) -- 2.39.2