libmm-glib: remove explicit GDestroyNotify cast on g_object_unref
g_object_unref is in form of `void (*)(gpointer)`, which matches the GDestroyNotify signature. An explicit GDestroyNotify cast on g_object_unref is thus not needed.
This commit is contained in:
committed by
Aleksander Morgado
parent
b225b7a267
commit
78e6ba5688
@@ -230,7 +230,7 @@ typedef struct {
|
||||
static void
|
||||
sms_object_list_free (GList *list)
|
||||
{
|
||||
g_list_free_full (list, (GDestroyNotify) g_object_unref);
|
||||
g_list_free_full (list, g_object_unref);
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -492,7 +492,7 @@ new_sms_object_ready (GDBusConnection *connection,
|
||||
else
|
||||
g_simple_async_result_set_op_res_gpointer (ctx->result,
|
||||
sms,
|
||||
(GDestroyNotify)g_object_unref);
|
||||
g_object_unref);
|
||||
|
||||
create_sms_context_complete_and_free (ctx);
|
||||
}
|
||||
|
||||
@@ -138,7 +138,7 @@ new_bearer_ready (GDBusConnection *connection,
|
||||
else
|
||||
g_simple_async_result_set_op_res_gpointer (ctx->result,
|
||||
bearer,
|
||||
(GDestroyNotify)g_object_unref);
|
||||
g_object_unref);
|
||||
|
||||
connect_context_complete_and_free (ctx);
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ typedef struct {
|
||||
static void
|
||||
call_object_list_free (GList *list)
|
||||
{
|
||||
g_list_free_full (list, (GDestroyNotify) g_object_unref);
|
||||
g_list_free_full (list, g_object_unref);
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -357,7 +357,7 @@ new_call_object_ready (GDBusConnection *connection,
|
||||
else
|
||||
g_simple_async_result_set_op_res_gpointer (ctx->result,
|
||||
call,
|
||||
(GDestroyNotify)g_object_unref);
|
||||
g_object_unref);
|
||||
|
||||
create_call_context_complete_and_free (ctx);
|
||||
}
|
||||
|
||||
@@ -1763,7 +1763,7 @@ typedef struct {
|
||||
static void
|
||||
bearer_object_list_free (GList *list)
|
||||
{
|
||||
g_list_free_full (list, (GDestroyNotify) g_object_unref);
|
||||
g_list_free_full (list, g_object_unref);
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -2027,7 +2027,7 @@ modem_new_bearer_ready (GDBusConnection *connection,
|
||||
else
|
||||
g_simple_async_result_set_op_res_gpointer (ctx->result,
|
||||
bearer,
|
||||
(GDestroyNotify)g_object_unref);
|
||||
g_object_unref);
|
||||
|
||||
create_bearer_context_complete_and_free (ctx);
|
||||
}
|
||||
@@ -2868,7 +2868,7 @@ modem_get_sim_ready (GDBusConnection *connection,
|
||||
else
|
||||
g_simple_async_result_set_op_res_gpointer (simple,
|
||||
sim,
|
||||
(GDestroyNotify)g_object_unref);
|
||||
g_object_unref);
|
||||
|
||||
g_simple_async_result_complete (simple);
|
||||
g_object_unref (simple);
|
||||
|
||||
Reference in New Issue
Block a user