mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-06 17:17:56 +03:00
qemu: migration_cookie: Register 'autoptr' functions for internal types
Register the the cleanup functions for 'qemuMigrationCookieGraphics', 'qemuMigrationCookieNetwork', 'qemuMigrationCookieNBD', and 'qemuMigrationCookieCaps'. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
a09cf33adf
commit
85d6d515ed
@ -64,6 +64,9 @@ qemuMigrationCookieGraphicsFree(qemuMigrationCookieGraphicsPtr grap)
|
||||
VIR_FREE(grap);
|
||||
}
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(qemuMigrationCookieGraphics,
|
||||
qemuMigrationCookieGraphicsFree);
|
||||
|
||||
|
||||
static void
|
||||
qemuMigrationCookieNetworkFree(qemuMigrationCookieNetworkPtr network)
|
||||
@ -81,6 +84,8 @@ qemuMigrationCookieNetworkFree(qemuMigrationCookieNetworkPtr network)
|
||||
VIR_FREE(network);
|
||||
}
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(qemuMigrationCookieNetwork,
|
||||
qemuMigrationCookieNetworkFree);
|
||||
|
||||
static void
|
||||
qemuMigrationCookieNBDFree(qemuMigrationCookieNBDPtr nbd)
|
||||
@ -94,6 +99,8 @@ qemuMigrationCookieNBDFree(qemuMigrationCookieNBDPtr nbd)
|
||||
VIR_FREE(nbd);
|
||||
}
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(qemuMigrationCookieNBD,
|
||||
qemuMigrationCookieNBDFree);
|
||||
|
||||
static void
|
||||
qemuMigrationCookieCapsFree(qemuMigrationCookieCapsPtr caps)
|
||||
@ -106,6 +113,8 @@ qemuMigrationCookieCapsFree(qemuMigrationCookieCapsPtr caps)
|
||||
VIR_FREE(caps);
|
||||
}
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(qemuMigrationCookieCaps,
|
||||
qemuMigrationCookieCapsFree);
|
||||
|
||||
void
|
||||
qemuMigrationCookieFree(qemuMigrationCookiePtr mig)
|
||||
|
Loading…
Reference in New Issue
Block a user