Changeset 108235 in vbox
- Timestamp:
- Feb 16, 2025 2:24:41 PM (2 months ago)
- svn:sync-xref-src-repo-rev:
- 167556
- Location:
- trunk/src/VBox/Runtime/common/acpi
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/acpi/acpi-ast.cpp
r108234 r108235 87 87 DECLHIDDEN(void) rtAcpiAstNodeFree(PRTACPIASTNODE pAstNd) 88 88 { 89 /** @todo */ 89 /* Free all the arguments first. */ 90 for (uint8_t i = 0; i < pAstNd->cArgs; i++) 91 { 92 if ( pAstNd->aArgs[i].enmType == kAcpiAstArgType_AstNode 93 && pAstNd->aArgs[i].u.pAstNd) 94 rtAcpiAstNodeFree(pAstNd->aArgs[i].u.pAstNd); 95 } 96 97 if (pAstNd->fFlags & RTACPI_AST_NODE_F_NEW_SCOPE) 98 { 99 PRTACPIASTNODE pIt, pItNext; 100 /* Do transformations on the nodes first. */ 101 RTListForEachSafe(&pAstNd->LstScopeNodes, pIt, pItNext, RTACPIASTNODE, NdAst) 102 { 103 RTListNodeRemove(&pIt->NdAst); 104 rtAcpiAstNodeFree(pIt); 105 } 106 } 107 108 pAstNd->enmOp = kAcpiAstNodeOp_Invalid; 109 pAstNd->cArgs = 0; 110 pAstNd->fFlags = 0; 90 111 RTMemFree(pAstNd); 91 112 } -
trunk/src/VBox/Runtime/common/acpi/acpi-compiler.cpp
r108234 r108235 3019 3019 if (RT_SUCCESS(rc)) 3020 3020 { 3021 pIt;3022 3021 RTListForEach(&pThis->LstStmts, pIt, RTACPIASTNODE, NdAst) 3023 3022 {
Note:
See TracChangeset
for help on using the changeset viewer.