[Libosinfo] [libosinfo PATCH v2 1/3] tree: Use g_clear_object in create_from_location_async_data_free()
Daniel P. Berrangé
berrange at redhat.com
Wed Jul 17 17:41:51 UTC 2019
On Wed, Jul 17, 2019 at 02:24:48PM +0200, Fabiano Fidêncio wrote:
> We should check whether the objects are NULL or not before calling
> g_object_unref(). Instead of doing so, let's use g_clear_object(), which
> doesn't require the check.
>
> Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
> ---
> osinfo/osinfo_tree.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 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 Libosinfo
mailing list