From: Guillaume Desmottes Date: Wed, 25 Sep 2013 12:36:55 +0000 (+0200) Subject: individual-store-channel: don't steal pixbuf store reference X-Git-Url: https://git.0d.be/?p=empathy.git;a=commitdiff_plain;h=78ac77df184361b57a89170bf0472f71d197754f 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 --- 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)