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
@@ -1438,7 +1438,7 @@ load_unlock_retries_context_step (LoadUnlockRetriesContext *ctx)
if (ctx->i == G_N_ELEMENTS (unlock_retries_map)) {
g_simple_async_result_set_op_res_gpointer (ctx->result,
g_object_ref (ctx->retries),
(GDestroyNotify)g_object_unref);
g_object_unref);
load_unlock_retries_context_complete_and_free (ctx);
return;
}
@@ -1643,7 +1643,7 @@ broadband_bearer_cinterion_new_ready (GObject *source,
if (!bearer)
g_simple_async_result_take_error (ctx->result, error);
else
g_simple_async_result_set_op_res_gpointer (ctx->result, bearer, (GDestroyNotify)g_object_unref);
g_simple_async_result_set_op_res_gpointer (ctx->result, bearer, g_object_unref);
create_bearer_context_complete_and_free (ctx);
}
@@ -1659,7 +1659,7 @@ broadband_bearer_new_ready (GObject *source,
if (!bearer)
g_simple_async_result_take_error (ctx->result, error);
else
g_simple_async_result_set_op_res_gpointer (ctx->result, bearer, (GDestroyNotify)g_object_unref);
g_simple_async_result_set_op_res_gpointer (ctx->result, bearer, g_object_unref);
create_bearer_context_complete_and_free (ctx);
}