[empathy] goa-auth-handler: pass the data pointer to auth_cb



commit 7f5ca9dc728bd94a24f89e63a0931af6c382641a
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Fri Aug 3 09:36:51 2012 +0200

    goa-auth-handler: pass the data pointer to auth_cb
    
    We are supposed to use it in this callback, if only to free it, so we should
    really pass it as user_data.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=680952

 libempathy/empathy-goa-auth-handler.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libempathy/empathy-goa-auth-handler.c b/libempathy/empathy-goa-auth-handler.c
index 9996894..ddcde17 100644
--- a/libempathy/empathy-goa-auth-handler.c
+++ b/libempathy/empathy-goa-auth-handler.c
@@ -173,13 +173,13 @@ got_oauth2_access_token_cb (GObject *source,
       case EMPATHY_SASL_MECHANISM_FACEBOOK:
         empathy_sasl_auth_facebook_async (data->channel,
             goa_oauth2_based_get_client_id (oauth2), access_token,
-            auth_cb, NULL);
+            auth_cb, data);
         break;
 
       case EMPATHY_SASL_MECHANISM_WLM:
         empathy_sasl_auth_wlm_async (data->channel,
             access_token,
-            auth_cb, NULL);
+            auth_cb, data);
         break;
 
       default:



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