From 7fe215ad6d7e18ee0e9714b5d1e288fe0c706af1 Mon Sep 17 00:00:00 2001
From: Julien Bonjean <julien@bonjean.info>
Date: Wed, 15 Apr 2009 12:39:52 -0400
Subject: [PATCH] Fixed g_object_unref warning for pixbuf

---
 sflphone-gtk/src/contacts/calllist.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sflphone-gtk/src/contacts/calllist.c b/sflphone-gtk/src/contacts/calllist.c
index d62e8ff39c..fe587a94e1 100644
--- a/sflphone-gtk/src/contacts/calllist.c
+++ b/sflphone-gtk/src/contacts/calllist.c
@@ -35,7 +35,7 @@ void calllist_add_contact (gchar *contact_name, gchar *contact_phone, contact_ty
 
         // Attach a pixbuf to a contact
         if (photo) {
-            attach_thumbnail (new_call, photo);
+            attach_thumbnail (new_call, gdk_pixbuf_copy(photo));
         }
         else {
             switch (type) {
-- 
GitLab