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 <fiden...@redhat.com>
> ---
>  osinfo/osinfo_tree.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

Reviewed-by: Daniel P. Berrangé <berra...@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 :|

_______________________________________________
Libosinfo mailing list
Libosinfo@redhat.com
https://www.redhat.com/mailman/listinfo/libosinfo

Reply via email to