[empathy] individual-store-channel: don't steal pixbuf store reference



commit 78ac77df184361b57a89170bf0472f71d197754f
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Wed Sep 25 14:36:55 2013 +0200

    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 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 eb0f3f5..4064da0 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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]