Use g_list_free_full
Use g_list_free_full

Use g_list_free_full instead of g_list_foreach + g_list_free, so the
lists are cleared with a single call.  This also avoids
cast-function-type warnings because of the different signature of GFunc
and g_object_unref.

Signed-off-by: Pino Toscano <7f561d60bf2df812acf624afe597ba9d84c2586d@redhat.com>
Reviewed-by: Daniel P. Berrangé <bb938cf255e055ff3507f2627d214e8e62118fcf@redhat.com>

libvirt/libvirt-designer,libvirt/libvirt-designer