Browse Source

Only free memory if streaming or chunking (fixes #74)

pull/75/head
Matthew Holt 11 years ago
parent
commit
2363257607
  1. 6
      papaparse.js

6
papaparse.js

@ -1187,11 +1187,13 @@ @@ -1187,11 +1187,13 @@
meta: msg.results.meta
});
}
delete msg.results; // free memory ASAP
}
else if (isFunction(worker.userChunk))
{
worker.userChunk(msg.results, msg.file);
delete msg.results; // free memory ASAP
delete msg.results;
}
}
if (msg.finished)

Loading…
Cancel
Save