diff --git a/repos/ports/run/virtualbox.run b/repos/ports/run/virtualbox.run index b0325df82b..eab4eb5c50 100644 --- a/repos/ports/run/virtualbox.run +++ b/repos/ports/run/virtualbox.run @@ -118,11 +118,7 @@ append_if [expr $use_serial] config { append config { - - - - - + diff --git a/repos/ports/src/virtualbox/frontend/main.cc b/repos/ports/src/virtualbox/frontend/main.cc index 00ab28388b..9db1fd65d9 100644 --- a/repos/ports/src/virtualbox/frontend/main.cc +++ b/repos/ports/src/virtualbox/frontend/main.cc @@ -89,7 +89,6 @@ HRESULT setupmachine() static com::Utf8Str vm_config(c_vbox_file); static com::Utf8Str vm_name(c_vbox_vmname); - settings::MachineConfigFile * machine_config = new settings::MachineConfigFile(&vm_config); /* Machine object */ ComObjPtr machine; @@ -103,7 +102,7 @@ HRESULT setupmachine() if (FAILED(rc)) return rc; - rc = machine->init(virtualbox, vm_name, *machine_config); + rc = machine->initFromSettings(virtualbox, vm_config, nullptr); if (FAILED(rc)) return rc;