mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 06:44:06 +02:00
Merge pull request #9376 from hyperlogic/tablet-ui3
Prevent crash when closing the tablet while a sound is playing.
This commit is contained in:
commit
88f3ff7977
1 changed files with 2 additions and 1 deletions
|
@ -283,7 +283,8 @@ SoundEffect::~SoundEffect() {
|
|||
_sound->deleteLater();
|
||||
}
|
||||
if (_injector) {
|
||||
_injector->deleteLater();
|
||||
// stop will cause the AudioInjector to delete itself.
|
||||
_injector->stop();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue