cli: remove explicit GDestroyNotify cast on g_object_unref

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.
This commit is contained in:
Ben Chan
2017-03-29 10:22:28 +02:00
committed by Aleksander Morgado
parent 254f2e3412
commit b225b7a267
2 changed files with 17 additions and 17 deletions
+2 -2
View File
@@ -314,7 +314,7 @@ list_current_modems (MMManager *manager)
for (l = modems; l; l = g_list_next (l)) {
print_modem_short_info (MM_OBJECT (l->data));
}
g_list_free_full (modems, (GDestroyNotify) g_object_unref);
g_list_free_full (modems, g_object_unref);
}
g_print ("\n");
}
@@ -412,7 +412,7 @@ get_manager_ready (GObject *source,
mm_manager_report_kernel_event (ctx->manager, properties, NULL, NULL, NULL);
g_object_unref (properties);
}
g_list_free_full (list, (GDestroyNotify) g_object_unref);
g_list_free_full (list, g_object_unref);
}
/* If we get cancelled, operation done */