[empathy] dispatcher_request_handles_cb: use request_data->dispatcher to get the self pointer



commit 8bc370bcaf9d03ec49368b18f84e539e6b89e13b
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Mon Oct 26 15:21:55 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 d4c2908..eb43bc1 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 *self = EMPATHY_DISPATCHER (object);
+      EmpathyDispatcher *self = request_data->dispatcher;
       EmpathyDispatcherPriv *priv = GET_PRIV (self);
       ConnectionData *cd;
 



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