[libvirt] [designer PATCH 4/6] Use g_list_free_full
Daniel P. Berrangé
berrange at redhat.com
Thu Dec 20 09:42:41 UTC 2018
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 at redhat.com>
> ---
> libvirt-designer/libvirt-designer-domain.c | 9 +++------
> 1 file changed, 3 insertions(+), 6 deletions(-)
Reviewed-by: Daniel P. Berrangé <berrange at 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 :|
More information about the libvir-list
mailing list