[empathy] ft-handler: contact_factory_contact_cb: ref the contact
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] ft-handler: contact_factory_contact_cb: ref the contact
- Date: Mon, 23 Nov 2009 15:01:49 +0000 (UTC)
commit 250f2c784601f83fb5d0ccdd02d64d607ae0a385
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Nov 19 11:09:29 2009 +0000
ft-handler: contact_factory_contact_cb: ref the contact
empathy_tp_contact_factory_get_from_handle is not supposed to give a reference
to the callback.
libempathy/empathy-ft-handler.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libempathy/empathy-ft-handler.c b/libempathy/empathy-ft-handler.c
index b05da94..7c8033d 100644
--- a/libempathy/empathy-ft-handler.c
+++ b/libempathy/empathy-ft-handler.c
@@ -1219,7 +1219,7 @@ contact_factory_contact_cb (EmpathyTpContactFactory *factory,
return;
}
- priv->contact = contact;
+ priv->contact = g_object_ref (contact);
cb_data->callback (handler, NULL, cb_data->user_data);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]