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:
aystarik 2005-06-29 18:35:17 +00:00
parent 75851dc58c
commit 205bb3cdb4

View File

@ -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 */