Object lifetime fixes

This commit is contained in:
Jack Andersen
2016-05-31 11:07:46 -10:00
parent 16c105fadb
commit b26ad4c446
2 changed files with 7 additions and 22 deletions

View File

@@ -45,7 +45,6 @@ void Sequencer::_bringOutYourDead()
void Sequencer::_destroy()
{
printf("DESTROY %p\n", this);
Entity::_destroy();
if (m_submix)
{
@@ -56,9 +55,11 @@ void Sequencer::_destroy()
Sequencer::~Sequencer()
{
printf("DEALLOC %p\n", this);
if (m_submix)
{
m_engine.removeSubmix(m_submix);
m_submix = nullptr;
}
}
Sequencer::Sequencer(Engine& engine, const AudioGroup& group, int groupId,