mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 12:05:17 +00:00
vbox: avoid provoking assertions in VBoxSVC
Passing a NULL pointer to IMachine::delete virtualbox API causes VBoxSVC to raise an assertion. This patch passes an empty array instead.
This commit is contained in:
parent
d2aec1138f
commit
3dab791fc7
@ -5294,7 +5294,8 @@ vboxDomainUndefineFlags(virDomainPtr dom, unsigned int flags)
|
||||
|
||||
((IMachine_Delete)machine->vtbl->Delete)(machine, &safeArray, &progress);
|
||||
# else
|
||||
machine->vtbl->Delete(machine, 0, NULL, &progress);
|
||||
vboxArray array = VBOX_ARRAY_INITIALIZER;
|
||||
machine->vtbl->Delete(machine, 0, (IMedium**)&array, &progress);
|
||||
# endif
|
||||
if (progress != NULL) {
|
||||
progress->vtbl->WaitForCompletion(progress, -1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user