diff options
author | Ben Chan <benchan@chromium.org> | 2017-03-28 18:35:54 -0700 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2017-03-29 10:22:05 +0200 |
commit | 9823d9d6f613d33e868352328a7056809996e790 (patch) | |
tree | 2956a0ba7bb29540950f7c96314343df2da0aead /src/mm-bearer-list.c | |
parent | 3c4c983642c0d03aa6e509221930179c59aac9b6 (diff) |
core: 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.
Diffstat (limited to 'src/mm-bearer-list.c')
-rw-r--r-- | src/mm-bearer-list.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mm-bearer-list.c b/src/mm-bearer-list.c index 205193ae..e021e34a 100644 --- a/src/mm-bearer-list.c +++ b/src/mm-bearer-list.c @@ -189,7 +189,7 @@ disconnect_all_context_complete_and_free (DisconnectAllContext *ctx) g_object_unref (ctx->result); if (ctx->current) g_object_unref (ctx->current); - g_list_free_full (ctx->pending, (GDestroyNotify) g_object_unref); + g_list_free_full (ctx->pending, g_object_unref); g_free (ctx); } @@ -339,7 +339,7 @@ dispose (GObject *object) MMBearerList *self = MM_BEARER_LIST (object); if (self->priv->bearers) { - g_list_free_full (self->priv->bearers, (GDestroyNotify) g_object_unref); + g_list_free_full (self->priv->bearers, g_object_unref); self->priv->bearers = NULL; } |