modem: fix crash when disconnecting

Fixes: 9b935fad9b
This commit is contained in:
Beniamino Galvani
2018-11-06 10:27:34 +01:00
parent c7371ff441
commit f330b198b1

View File

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