]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_domain.c: use g_autoptr when possible
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Thu, 9 Jan 2020 18:33:45 +0000 (15:33 -0300)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 31 Jan 2020 14:25:33 +0000 (15:25 +0100)
commit20fa2bc6e52e01feaf39d12d38bcf8eaec4c9a46
tree3bca12ec90c0ff957cb361c5866541c16de85fb9
parentae9f630e502f440fbca4d4acf5aa5160a6cf847b
qemu_domain.c: use g_autoptr when possible

Avoid some of the virObjectUnref() calls by using g_autoptr.
Aside from the 'cleanup' label in qemuDomainSetFakeReboot(),
all other now deprecated cleanup labels will be removed in
the next patch.

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_domain.c