diff --git a/Runtime/MP1/CFrontEndUI.cpp b/Runtime/MP1/CFrontEndUI.cpp index 4e73a5c31..6525104a1 100644 --- a/Runtime/MP1/CFrontEndUI.cpp +++ b/Runtime/MP1/CFrontEndUI.cpp @@ -1844,6 +1844,12 @@ CFrontEndUI::CFrontEndUI() : CIOWin("FrontEndUI") { m_touchBar->SetPhase(CFrontEndUITouchBar::EPhase::None); } +CFrontEndUI::~CFrontEndUI() { + if (x14_phase >= EPhase::DisplayFrontEnd) { + CAudioSys::RemoveAudioGroup(x44_frontendAudioGrp->GetAudioGroupData()); + } +} + void CFrontEndUI::StartSlideShow(CArchitectureQueue& queue) { xf4_curAudio->StopMixing(); queue.Push(MakeMsg::CreateCreateIOWin(EArchMsgTarget::IOWinManager, 12, 11, std::make_shared())); diff --git a/Runtime/MP1/CFrontEndUI.hpp b/Runtime/MP1/CFrontEndUI.hpp index c44e7ecd8..e708390f1 100644 --- a/Runtime/MP1/CFrontEndUI.hpp +++ b/Runtime/MP1/CFrontEndUI.hpp @@ -371,6 +371,7 @@ private: public: CFrontEndUI(); + ~CFrontEndUI(); void StartSlideShow(CArchitectureQueue& queue); std::string GetAttractMovieFileName(int idx); std::string GetNextAttractMovieFileName();