]> git.ipfire.org Git - thirdparty/libvirt.git/commit
lib: Prefer g_autoptr() declaration of virQEMUDriverConfigPtr
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 4 Sep 2020 06:59:08 +0000 (08:59 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 7 Sep 2020 08:47:54 +0000 (10:47 +0200)
commitd92c2bbc6597fcb951b303a9122ec1ca71514d10
tree77f5b6f148130b089360866ff9668e159b8f848e
parent5befe4ee184d137b7fa8a7efee83aa4a03d7d293
lib: Prefer g_autoptr() declaration of virQEMUDriverConfigPtr

In the past we had to declare @cfg and then explicitly unref it.
But now, with glib we can use g_autoptr() which will do the unref
automatically and thus is more bulletproof.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
src/qemu/qemu_conf.h
src/qemu/qemu_hostdev.c
src/qemu/qemu_interface.c
src/qemu/qemu_migration.c
src/qemu/qemu_migration_cookie.c
tests/domaincapstest.c
tests/qemuxml2xmltest.c