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:

committed by
Aleksander Morgado

parent
3c4c983642
commit
9823d9d6f6
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user