mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 17:00:13 +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();
|
_sound->deleteLater();
|
||||||
}
|
}
|
||||||
if (_injector) {
|
if (_injector) {
|
||||||
_injector->deleteLater();
|
// stop will cause the AudioInjector to delete itself.
|
||||||
|
_injector->stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue