Implement/match LegoAnimMMPresenter::~LegoAnimMMPresenter (#833)

* Implement/match LegoAnimMMPresenter::~LegoAnimMMPresenter

* add missing override

* use NULL
This commit is contained in:
Christian Semmler 2024-04-20 12:53:53 -04:00 committed by GitHub
parent 30747dbae6
commit 26f2dd1e5f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 1 deletions

View file

@ -25,6 +25,7 @@ class LegoAnimMMPresenter : public MxCompositePresenter {
};
LegoAnimMMPresenter();
~LegoAnimMMPresenter() override;
MxLong Notify(MxParam& p_param) override; // vtable+0x04

View file

@ -28,12 +28,24 @@ LegoAnimMMPresenter::LegoAnimMMPresenter()
m_tranInfo = NULL;
m_unk0x54 = 0;
m_unk0x64 = NULL;
m_unk0x68 = 0;
m_unk0x68 = NULL;
m_roiMap = NULL;
m_roiMapSize = 0;
m_unk0x58 = e_unk0;
}
// FUNCTION: LEGO1 0x1004aa60
LegoAnimMMPresenter::~LegoAnimMMPresenter()
{
if (VideoManager() != NULL) {
VideoManager()->UnregisterPresenter(*this);
}
delete m_unk0x68;
NotificationManager()->Unregister(this);
}
// FUNCTION: LEGO1 0x1004aaf0
MxResult LegoAnimMMPresenter::StartAction(MxStreamController* p_controller, MxDSAction* p_action)
{