summaryrefslogtreecommitdiff
path: root/src/VBox/Debugger/testcase/tstVBoxDbg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/VBox/Debugger/testcase/tstVBoxDbg.cpp')
-rw-r--r--src/VBox/Debugger/testcase/tstVBoxDbg.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/VBox/Debugger/testcase/tstVBoxDbg.cpp b/src/VBox/Debugger/testcase/tstVBoxDbg.cpp
index d39f4b6a..5d72c8db 100644
--- a/src/VBox/Debugger/testcase/tstVBoxDbg.cpp
+++ b/src/VBox/Debugger/testcase/tstVBoxDbg.cpp
@@ -4,7 +4,7 @@
*/
/*
- * Copyright (C) 2006-2010 Oracle Corporation
+ * Copyright (C) 2006-2013 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
@@ -45,7 +45,8 @@ int main(int argc, char **argv)
* Create empty VM.
*/
PVM pVM;
- int rc = VMR3Create(1, NULL, NULL, NULL, NULL, NULL, &pVM);
+ PUVM pUVM;
+ int rc = VMR3Create(1, NULL, NULL, NULL, NULL, NULL, &pVM, &pUVM);
if (RT_SUCCESS(rc))
{
/*
@@ -54,7 +55,7 @@ int main(int argc, char **argv)
QApplication App(argc, argv);
PDBGGUI pGui;
PCDBGGUIVT pGuiVT;
- rc = DBGGuiCreateForVM(pVM, &pGui, &pGuiVT);
+ rc = DBGGuiCreateForVM(pUVM, &pGui, &pGuiVT);
if (RT_SUCCESS(rc))
{
if (argc <= 1 || argc == 2)
@@ -92,12 +93,13 @@ int main(int argc, char **argv)
/*
* Cleanup.
*/
- rc = VMR3Destroy(pVM);
+ rc = VMR3Destroy(pUVM);
if (!RT_SUCCESS(rc))
{
RTPrintf(TESTCASE ": error: failed to destroy vm! rc=%Rrc\n", rc);
cErrors++;
}
+ VMR3ReleaseUVM(pUVM);
}
else
{