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.
This commit is contained in:
Ben Chan
2017-03-28 18:35:54 -07:00
committed by Aleksander Morgado
parent 3c4c983642
commit 9823d9d6f6
17 changed files with 41 additions and 41 deletions

View File

@@ -50,7 +50,7 @@ static void
handle_list_context_free (HandleListContext *ctx)
{
if (ctx->list)
g_list_free_full (ctx->list, (GDestroyNotify)g_object_unref);
g_list_free_full (ctx->list, g_object_unref);
if (ctx->current)
g_object_unref (ctx->current);
g_object_unref (ctx->skeleton);