cdma: fix crash on NULL error (bgo #670145)

This commit is contained in:
Tom Goetz
2012-02-25 20:06:33 -06:00
committed by Dan Williams
parent b42ce2d8e6
commit 86bfe96ddb
+2 -2
View File
@@ -2312,7 +2312,7 @@ simple_connect (MMModemSimple *simple,
MM_MODEM_ERROR_OPERATION_IN_PROGRESS,
"Connection is already in progress");
callback (MM_MODEM (simple), error, user_data);
g_error_free (error);
g_clear_error (&error);
return;
}
@@ -2329,7 +2329,7 @@ simple_connect (MMModemSimple *simple,
}
simple_state_machine (MM_MODEM (simple), error, info);
g_error_free (error);
g_clear_error (&error);
}
static void