ofono: fix crash when disconnecting

Fixes: 9b935fad9b
This commit is contained in:
Beniamino Galvani
2018-11-06 10:38:35 +01:00
parent f330b198b1
commit 7747c8d8ae

View File

@@ -166,7 +166,7 @@ static void
disconnect_context_complete_on_idle (gpointer user_data,
GCancellable *cancellable)
{
DisconnectContext *ctx = NULL;
DisconnectContext *ctx = user_data;
gs_free_error GError *error = NULL;
if (!g_cancellable_set_error_if_cancelled (cancellable, &error)) {