[empathy] event-manager: event_manager_ft_got_contact_cb: ref the contact
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] event-manager: event_manager_ft_got_contact_cb: ref the contact
- Date: Mon, 23 Nov 2009 15:01:54 +0000 (UTC)
commit 9da605b25b64e25bc6a1b7651d001ea451fbeac9
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Nov 19 11:10:15 2009 +0000
event-manager: event_manager_ft_got_contact_cb: ref the contact
empathy_tp_contact_factory_get_from_handle is not supposed to give a reference
to the callback.
src/empathy-event-manager.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c
index c108020..0992dd2 100644
--- a/src/empathy-event-manager.c
+++ b/src/empathy-event-manager.c
@@ -714,7 +714,7 @@ event_manager_ft_got_contact_cb (EmpathyTpContactFactory *factory,
EventManagerApproval *approval = (EventManagerApproval *) user_data;
char *header;
- approval->contact = contact;
+ approval->contact = g_object_ref (contact);
header = g_strdup_printf (_("Incoming file transfer from %s"),
empathy_contact_get_name (approval->contact));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]