[PATCH] libmbim-glib, proxy: remove explicit GDestroyNotify cast on g_object_unref
Ben Chan
benchan at chromium.org
Tue Oct 16 23:27:42 UTC 2018
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.
---
src/libmbim-glib/mbim-proxy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libmbim-glib/mbim-proxy.c b/src/libmbim-glib/mbim-proxy.c
index 0e83f60..5df28be 100644
--- a/src/libmbim-glib/mbim-proxy.c
+++ b/src/libmbim-glib/mbim-proxy.c
@@ -1406,7 +1406,7 @@ dispose (GObject *object)
}
if (priv->devices) {
- g_list_free_full (priv->devices, (GDestroyNotify) g_object_unref);
+ g_list_free_full (priv->devices, g_object_unref);
priv->devices = NULL;
}
--
2.19.1.568.g152ad8e336-goog
More information about the libmbim-devel
mailing list