mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
migration: finalize current_migration object
current_migration has .instance_finalize callback, but it is not called, because nobody unrefs current_migration. Fix that. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Reviewed-by: Peter Xu <peterx@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
This commit is contained in:
parent
bae416e5ba
commit
1f8956041a
3 changed files with 7 additions and 0 deletions
|
@ -132,6 +132,11 @@ void migration_object_init(void)
|
|||
}
|
||||
}
|
||||
|
||||
void migration_object_finalize(void)
|
||||
{
|
||||
object_unref(OBJECT(current_migration));
|
||||
}
|
||||
|
||||
/* For outgoing */
|
||||
MigrationState *migrate_get_current(void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue