Index: /trunk/src/VBox/Devices/Audio/DrvHostAudioValidationKit.cpp
===================================================================
--- /trunk/src/VBox/Devices/Audio/DrvHostAudioValidationKit.cpp	(revision 88457)
+++ /trunk/src/VBox/Devices/Audio/DrvHostAudioValidationKit.cpp	(revision 88458)
@@ -44,5 +44,5 @@
 {
     /** The stream's acquired configuration. */
-    PPDMAUDIOSTREAMCFG  pCfg;
+    PDMAUDIOSTREAMCFG   Cfg;
     /** Audio file to dump output to or read input from. */
     PAUDIOHLPFILE       pFile;
@@ -207,11 +207,5 @@
     else
         rc = drvHostValKitAudioCreateStreamOut(pThis, pStreamDbg, pCfgReq, pCfgAcq);
-    if (RT_SUCCESS(rc))
-    {
-        pStreamDbg->pCfg = PDMAudioStrmCfgDup(pCfgAcq);
-        if (!pStreamDbg->pCfg)
-            rc = VERR_NO_MEMORY;
-    }
-
+    PDMAudioStrmCfgCopy(&pStreamDbg->Cfg, pCfgAcq);
     return rc;
 }
@@ -227,5 +221,5 @@
     AssertPtrReturn(pStreamDbg, VERR_INVALID_POINTER);
 
-    if (   pStreamDbg->pCfg->enmDir == PDMAUDIODIR_OUT
+    if (   pStreamDbg->Cfg.enmDir == PDMAUDIODIR_OUT
         && pStreamDbg->Out.pbPlayBuffer)
     {
@@ -248,10 +242,4 @@
         RTStrmClose(pStreamDbg->pFileTiming);
         pStreamDbg->pFileTiming = NULL;
-    }
-
-    if (pStreamDbg->pCfg)
-    {
-        PDMAudioStrmCfgFree(pStreamDbg->pCfg);
-        pStreamDbg->pCfg = NULL;
     }
 
@@ -328,12 +316,12 @@
 
     // Microseconds are used everythere below
-    uint32_t const cFrames = PDMAudioPropsBytesToFrames(&pStreamDbg->pCfg->Props, cbBuf);
+    uint32_t const cFrames = PDMAudioPropsBytesToFrames(&pStreamDbg->Cfg.Props, cbBuf);
     RTStrmPrintf(pStreamDbg->pFileTiming, "%d %d %d %d\n",
                  // Host time elapsed since Guest submitted the first buffer for playback:
                  (uint32_t)(cNsSinceStart / 1000),
                  // how long all the samples submitted previously were played:
-                 (uint32_t)(pStreamDbg->cFramesSinceStarted * 1.0E6 / pStreamDbg->pCfg->Props.uHz),
+                 (uint32_t)(pStreamDbg->cFramesSinceStarted * 1.0E6 / pStreamDbg->Cfg.Props.uHz),
                  // how long a new uSamplesReady samples should/will be played:
-                 (uint32_t)(cFrames * 1.0E6 / pStreamDbg->pCfg->Props.uHz),
+                 (uint32_t)(cFrames * 1.0E6 / pStreamDbg->Cfg.Props.uHz),
                  cFrames);
 
