Skip to content

Commit e46e35b

Browse files
committed
Check src array when unloading
Fixes #1103
1 parent d22ddcf commit e46e35b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/howler.core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1728,7 +1728,7 @@
17281728
// Delete this sound from the cache (if no other Howl is using it).
17291729
var remCache = true;
17301730
for (i=0; i<Howler._howls.length; i++) {
1731-
if (Howler._howls[i]._src === self._src) {
1731+
if (Howler._howls[i]._src === self._src || self._src.indexOf(Howler._howls[i]._src) >= 0) {
17321732
remCache = false;
17331733
break;
17341734
}

0 commit comments

Comments
 (0)