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

@@ -646,8 +646,8 @@ dispose (GObject *object)
MMDevice *self = MM_DEVICE (object);
g_clear_object (&(self->priv->plugin));
g_list_free_full (self->priv->port_probes, (GDestroyNotify)g_object_unref);
g_list_free_full (self->priv->ignored_port_probes, (GDestroyNotify)g_object_unref);
g_list_free_full (self->priv->port_probes, g_object_unref);
g_list_free_full (self->priv->ignored_port_probes, g_object_unref);
clear_modem (self);