Trace attached on lp #392678 seems to indicate that the
priv->connections hash table doesn't have a ConnectionData associated
with the connection. A possible explanation could be that this
connection has been invalidated before the RequestChannel call is
terminated.
Check if ConnectionData so Empathy won't crash in such case.
if (request_data->cb != NULL)
request_data->cb (NULL, error, request_data->user_data);
- conn_data->outstanding_requests =
- g_list_remove (conn_data->outstanding_requests, request_data);
+ if (conn_data != NULL)
+ {
+ conn_data->outstanding_requests =
+ g_list_remove (conn_data->outstanding_requests, request_data);
+ }
+ /* else Connection has been invalidated */
+
free_dispatcher_request_data (request_data);
}