Commit 8454d371 authored by liujiaxin's avatar liujiaxin

1

parent 15697f7b
...@@ -997,6 +997,9 @@ cc.Class({ ...@@ -997,6 +997,9 @@ cc.Class({
console.log('onDestroy onDestroy'); console.log('onDestroy onDestroy');
// audioEngine.uncache(this.audioUrl); // audioEngine.uncache(this.audioUrl);
audioEngine.stop(this._currentAudioId); audioEngine.stop(this._currentAudioId);
this._destruct();
this._audioSource._destruct();
this._audioACSource._destruct();
this._audioSource.destroy(); this._audioSource.destroy();
this._audioACSource.destroy(); this._audioACSource.destroy();
this._audioSource = null; this._audioSource = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment