Index: /trunk/src/VBox/Runtime/common/zip/xarvfs.cpp
===================================================================
--- /trunk/src/VBox/Runtime/common/zip/xarvfs.cpp	(revision 61971)
+++ /trunk/src/VBox/Runtime/common/zip/xarvfs.cpp	(revision 61972)
@@ -1453,4 +1453,12 @@
     RTVfsFileRelease(pThis->hVfsFile);
     pThis->hVfsFile = NIL_RTVFSFILE;
+
+    if (pThis->XarReader.pDoc)
+        delete pThis->XarReader.pDoc;
+    pThis->XarReader.pDoc = NULL;
+    /* The other XarReader fields only point to elements within pDoc. */
+    pThis->XarReader.pToc = NULL;
+    pThis->XarReader.cCurDepth = 0;
+    pThis->XarReader.pCurFile = NULL;
 
     return VINF_SUCCESS;
