--- a/libpurple/protocols/gg/oauth/oauth-purple.c Wed Oct 02 00:24:45 2013 +0530 +++ b/libpurple/protocols/gg/oauth/oauth-purple.c Wed Oct 02 00:51:46 2013 +0530 @@ -115,7 +115,7 @@ gboolean succ = TRUE; const gchar *xml_raw; - if (!PURPLE_CONNECTION_IS_VALID(data->gc)) + if (!PURPLE_IS_CONNECTION(data->gc)) { ggp_oauth_data_free(data); return; @@ -185,7 +185,7 @@ const char *url = "http://api.gadu-gadu.pl/access_token"; int response_code; - if (!PURPLE_CONNECTION_IS_VALID(data->gc)) + if (!PURPLE_IS_CONNECTION(data->gc)) { ggp_oauth_data_free(data); return;