[*] fix crash in an empty unit test on deinit

This commit is contained in:
Reece Wilson 2023-02-09 19:28:01 +00:00
parent 25ffeec543
commit ba9ddded75

View File

@ -133,8 +133,12 @@ namespace Aurora::Memory
SysAssertDbgExp(count_ == 0);
if (this->base_)
{
if (this->heap_)
{
o1HeapReleaseCpp(this->heap_);// ->~O1HeapInstance(); // TODO: make free func
this->heap_ = nullptr;
}
if (this->ownsMemory_)
{