[empathy/gnome-2-28] dispatcher_request_handles_cb: use request_data->dispatcher to get the self pointer



commit 054f27602448890116a67447e07032eb228bc82c
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Mon Oct 26 15:31:26 2009 +0000

    dispatcher_request_handles_cb: use request_data->dispatcher to get the self pointer
    
    We don't pass a weak pointer to tp_cli_connection_call_request_handles
    so we can't rely on it (#599612).

 libempathy/empathy-dispatcher.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libempathy/empathy-dispatcher.c b/libempathy/empathy-dispatcher.c
index 1cb4189..5d20a16 100644
--- a/libempathy/empathy-dispatcher.c
+++ b/libempathy/empathy-dispatcher.c
@@ -1445,7 +1445,7 @@ dispatcher_request_handles_cb (TpConnection *connection,
 
   if (error != NULL)
     {
-      EmpathyDispatcher *dispatcher = EMPATHY_DISPATCHER (object);
+      EmpathyDispatcher *dispatcher = request_data->dispatcher;
       EmpathyDispatcherPriv *priv = GET_PRIV (dispatcher);
       ConnectionData *cd;
 



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