[*] fix crash in an empty unit test on deinit
This commit is contained in:
parent
25ffeec543
commit
ba9ddded75
@ -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_)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user