Skip to content

Commit fe99512

Browse files
Calling base class destroy method only after cleaning up all Web Audio related stuff
1 parent ae89750 commit fe99512

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sound/webaudio/WebAudioSoundManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,14 @@ var WebAudioSoundManager = new Class({
173173
*/
174174
destroy: function ()
175175
{
176-
BaseSoundManager.prototype.destroy.call(this);
177176
this.destination = null;
178177
this.masterVolumeNode.disconnect();
179178
this.masterVolumeNode = null;
180179
this.masterMuteNode.disconnect();
181180
this.masterMuteNode = null;
182181
this.context.suspend();
183182
this.context = null;
183+
BaseSoundManager.prototype.destroy.call(this);
184184
}
185185
});
186186
Object.defineProperty(WebAudioSoundManager.prototype, 'mute', {

0 commit comments

Comments
 (0)