Re: [libvirt] [designer PATCH 4/6] Use g_list_free_full

2018-12-20 Thread Daniel P . Berrangé
On Thu, Dec 20, 2018 at 10:23:50AM +0100, Pino Toscano wrote: > 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-

[libvirt] [designer PATCH 4/6] Use g_list_free_full

2018-12-20 Thread Pino Toscano
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 --- libvirt-designer/libvirt-designer-domain.c | 9