Files
ac-decomp/src/JSystem/JKernel/JKRDisposer.cpp
T
Cuyler36 80ef14e480 Add & Link JKernel (#142)
* match and link JKRAram.cpp

* match and link JKRExpHeap

* match and link JKRAramStream.cpp

* match and link JKRFileLoader.cpp

* match and link JKRFileFinder.cpp

* JKernel Dump

* match and link JKRAramArchive.cpp

* match and link JKRDvdArchive.cpp

* match and link JKRCompArchive.cpp

* match but not link JKRDvdAramRipper

* small refactors

* match and link JKRThread.cpp

* fix and link JKRDvdAramStream.cpp

* Formatting fixes

---------

Co-authored-by: SwareJonge <olaf23okken@gmail.com>
2023-11-07 23:34:10 -05:00

17 lines
381 B
C++

#include "JSystem/JKernel/JKRDisposer.h"
#include "JSystem/JKernel/JKRHeap.h"
JKRDisposer::JKRDisposer() : mPointerLinks(this) {
this->mRootHeap = JKRHeap::findFromRoot(this);
if (this->mRootHeap != nullptr) {
this->mRootHeap->appendDisposer(this);
}
}
JKRDisposer::~JKRDisposer() {
if (this->mRootHeap != nullptr) {
this->mRootHeap->removeDisposer(this);
}
}