mirror of
https://github.com/acpica/acpica/
synced 2025-02-19 15:04:30 +03:00
Must actually delete objects attached to the root, not just detach
them. date 2000.03.10.22.00.00; author rmoore1; state Exp;
This commit is contained in:
parent
75851dc58c
commit
205bb3cdb4
@ -571,6 +571,9 @@ NsConvertEntryToHandle(NAME_TABLE_ENTRY *Nte)
|
||||
void
|
||||
NsTerminate (void)
|
||||
{
|
||||
ACPI_OBJECT_INTERNAL *ObjDesc;
|
||||
|
||||
|
||||
FUNCTION_TRACE ("NsTerminate");
|
||||
|
||||
|
||||
@ -582,14 +585,19 @@ NsTerminate (void)
|
||||
|
||||
/* Detach any object(s) attached to the root */
|
||||
|
||||
NsDetachObject (Gbl_RootObject);
|
||||
ObjDesc = NsGetAttachedObject (Gbl_RootObject);
|
||||
if (ObjDesc)
|
||||
{
|
||||
NsDetachObject (Gbl_RootObject);
|
||||
CmDeleteInternalObject (ObjDesc);
|
||||
}
|
||||
|
||||
NsDeleteScope (Gbl_RootObject->Scope);
|
||||
Gbl_RootObject->Scope = NULL;
|
||||
|
||||
REPORT_SUCCESS ("Entire namespace and objects deleted");
|
||||
|
||||
|
||||
|
||||
NsScopeStackClear ();
|
||||
CmFree (Gbl_CurrentScope); /* Free the root scope */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user