plugins: remove explicit GDestroyNotify cast on g_free / g_object_unref

g_free and g_object_unref are in form of  `void (*)(gpointer)`, which
matches the GDestroyNotify signature. An explicit GDestroyNotify cast on
g_free and g_object_unref is thus not needed.
This commit is contained in:
Ben Chan
2017-03-29 10:22:18 +02:00
committed by Aleksander Morgado
parent 9823d9d6f6
commit 254f2e3412
21 changed files with 37 additions and 37 deletions
+1 -1
View File
@@ -660,7 +660,7 @@ report_connect_status (MMBroadbandBearerIcera *self,
g_simple_async_result_set_op_res_gpointer (ctx->result,
g_object_ref (ctx->data),
(GDestroyNotify)g_object_unref);
g_object_unref);
dial_3gpp_context_complete_and_free (ctx);
return;
}
+3 -3
View File
@@ -883,7 +883,7 @@ broadband_bearer_icera_new_ready (GObject *source,
else
g_simple_async_result_set_op_res_gpointer (simple,
bearer,
(GDestroyNotify)g_object_unref);
g_object_unref);
g_simple_async_result_complete (simple);
g_object_unref (simple);
}
@@ -902,7 +902,7 @@ broadband_bearer_new_ready (GObject *source,
else
g_simple_async_result_set_op_res_gpointer (simple,
bearer,
(GDestroyNotify)g_object_unref);
g_object_unref);
g_simple_async_result_complete (simple);
g_object_unref (simple);
}
@@ -1090,7 +1090,7 @@ load_unlock_retries_ready (MMBaseModem *self,
mm_unlock_retries_set (retries, MM_MODEM_LOCK_SIM_PUK2, puk2);
g_simple_async_result_set_op_res_gpointer (operation_result,
retries,
(GDestroyNotify)g_object_unref);
g_object_unref);
} else {
g_simple_async_result_set_error (operation_result,
MM_CORE_ERROR,