From 78db83dc1af3e4d4ca858f74337d60611c3ccaf1 Mon Sep 17 00:00:00 2001 From: Daniel Henrique Barboza Date: Mon, 13 Jul 2020 06:49:46 -0300 Subject: [PATCH] qemu_migration_cookie.h: register AUTOPTR_CLEANUP_FUNC for qemuMigrationCookiePtr Next patch will use g_autoptr() in a qemuMigrationCookiePtr pointer to modernize qemuMigrationSrcBeginPhase(). Signed-off-by: Daniel Henrique Barboza Reviewed-by: Michal Privoznik --- src/qemu/qemu_migration_cookie.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/qemu/qemu_migration_cookie.h b/src/qemu/qemu_migration_cookie.h index 1e88684589..95e7edb899 100644 --- a/src/qemu/qemu_migration_cookie.h +++ b/src/qemu/qemu_migration_cookie.h @@ -171,6 +171,7 @@ qemuMigrationEatCookie(virQEMUDriverPtr driver, void qemuMigrationCookieFree(qemuMigrationCookiePtr mig); +G_DEFINE_AUTOPTR_CLEANUP_FUNC(qemuMigrationCookie, qemuMigrationCookieFree); int qemuMigrationCookieAddPersistent(qemuMigrationCookiePtr mig,