novatel: avoid calling qcdm_result_unref on NULL QcdmResult

This commit is contained in:
Ben Chan
2017-08-02 21:53:22 -07:00
committed by Aleksander Morgado
parent bae4590784
commit 6132a4d2ae

View File

@@ -444,7 +444,6 @@ nw_snapshot_old_ready (MMPortSerialQcdm *port,
result = qcdm_cmd_nw_subsys_modem_snapshot_cdma_result ((const gchar *) response->data, response->len, NULL);
g_byte_array_unref (response);
if (!result) {
qcdm_result_unref (result);
mm_dbg ("Failed to get QCDM Novatel Modem MSM6500 snapshot: %s", error->message);
g_task_return_error (task, error);
g_object_unref (task);