Open
Description
The function p.destroy = function() {
Original:
this.AbstractSoundInstance_destroy();
this._playbackResource.release();
Should be:
this._playbackResource.release();
this.AbstractSoundInstance_destroy();
Reason:
The function AbstractSoundInstance_destroy
makes the variable this._playbackResource
null, and we get a can't access function release
from null object error.
This doesn't free up the sound so eventually (after 27 sounds started on android and cordova) no more sounds will be played.