
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-off-by: Pino Toscano <ptoscano@redhat.com> --- libvirt-designer/libvirt-designer-domain.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|