mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
fix _finishCallback did not clean up bug (#3154)
This commit is contained in:
@@ -35,6 +35,7 @@ let _url2id = {};
|
||||
let _audioPool = [];
|
||||
|
||||
let recycleAudio = function (audio) {
|
||||
audio._finishCallback = null;
|
||||
if (_audioPool.length < 32) {
|
||||
audio.off('ended');
|
||||
audio.off('stop');
|
||||
|
||||
Reference in New Issue
Block a user