Skip to content

Commit

Permalink
Check src array when unloading
Browse files Browse the repository at this point in the history
Fixes #1103
  • Loading branch information
goldfire committed Dec 21, 2018
1 parent d22ddcf commit e46e35b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/howler.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1728,7 +1728,7 @@
// Delete this sound from the cache (if no other Howl is using it).
var remCache = true;
for (i=0; i<Howler._howls.length; i++) {
if (Howler._howls[i]._src === self._src) {
if (Howler._howls[i]._src === self._src || self._src.indexOf(Howler._howls[i]._src) >= 0) {
remCache = false;
break;
}
Expand Down

0 comments on commit e46e35b

Please sign in to comment.