Skip to content

Commit

Permalink
Dispose chunk only if it is standalone.
Browse files Browse the repository at this point in the history
  • Loading branch information
jayarjo committed Jan 16, 2013
1 parent 8af8ba4 commit 86b5799
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plupload.js
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,9 @@ plupload.Uploader = function(settings) {
xhr.onload = function() {
// Handle chunk response
if (chunks) {
chunkBlob.destroy(); // Dispose
if (chunkBlob.isDetached()) { // Dispose if standalone chunk
chunkBlob.destroy();
}

chunkArgs = {
chunk : chunk,
Expand Down

0 comments on commit 86b5799

Please sign in to comment.