mirror of
https://github.com/photonstorm/phaser
synced 2024-12-11 22:03:09 +00:00
Destroying removed sound in remove method
This commit is contained in:
parent
39a5c2907f
commit
89ad4f1b39
1 changed files with 1 additions and 0 deletions
|
@ -187,6 +187,7 @@ var BaseSoundManager = new Class({
|
|||
remove: function (sound) {
|
||||
var index = this.sounds.indexOf(sound);
|
||||
if (index !== -1) {
|
||||
sound.destroy();
|
||||
this.sounds.splice(index, 1);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue