Skip to content

Commit

Permalink
Merge pull request goldfire#834 from felthy/master
Browse files Browse the repository at this point in the history
Fix scratch buffer (iOS memory leak fix) not working since 982c0aa
  • Loading branch information
goldfire authored Nov 16, 2017
2 parents cdc0fb3 + 4a6c0d3 commit e0d5166
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/howler.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1910,10 +1910,10 @@
_cleanBuffer: function(node) {
var self = this;

if (self._scratchBuffer) {
if (Howler._scratchBuffer) {
node.bufferSource.onended = null;
node.bufferSource.disconnect(0);
try { node.bufferSource.buffer = self._scratchBuffer; } catch(e) {}
try { node.bufferSource.buffer = Howler._scratchBuffer; } catch(e) {}
}
node.bufferSource = null;

Expand Down

0 comments on commit e0d5166

Please sign in to comment.