mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-27 03:35:27 +00:00
Stop and delete the current music before deleting the sound output
This commit is contained in:
parent
1ade01edc8
commit
207d7dd89e
@ -76,6 +76,9 @@ namespace MWSound
|
|||||||
|
|
||||||
SoundManager::~SoundManager()
|
SoundManager::~SoundManager()
|
||||||
{
|
{
|
||||||
|
if(mMusic)
|
||||||
|
mMusic->Stop();
|
||||||
|
mMusic.reset();
|
||||||
Output.reset();
|
Output.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user