mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 15:59:49 +02:00
Prevent crash when closing the tablet while a sound is playing.
This commit is contained in:
parent
0746d38cae
commit
1b4146af6d
1 changed files with 2 additions and 1 deletions
|
@ -286,7 +286,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