[empathy: 90/148] Unref the EmpathyTpContactFactory



commit 4f3b1c138451c622204bfbc77467ac4d247b035a
Author: Cosimo Cecchi <cosimo cecchi collabora co uk>
Date:   Fri May 15 18:37:58 2009 +0200

    Unref the EmpathyTpContactFactory
---
 src/empathy-event-manager.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c
index c8749bc..abdd6db 100644
--- a/src/empathy-event-manager.c
+++ b/src/empathy-event-manager.c
@@ -877,6 +877,8 @@ event_manager_approve_channel_cb (EmpathyDispatcher *dispatcher,
       factory = empathy_tp_contact_factory_dup_singleton (connection);
       empathy_tp_contact_factory_get_from_handle (factory, handle,
         event_manager_ft_got_contact_cb, approval, NULL, G_OBJECT (manager));
+
+      g_object_unref (factory);
     }
   else if (!tp_strdiff (channel_type, TP_IFACE_CHANNEL_TYPE_STREAM_TUBE) ||
       !tp_strdiff (channel_type, TP_IFACE_CHANNEL_TYPE_DBUS_TUBE))



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