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 @@
meta: msg.results.meta meta: msg.results.meta
}); });
} }
delete msg.results; // free memory ASAP
} }
else if (isFunction(worker.userChunk)) else if (isFunction(worker.userChunk))
{
worker.userChunk(msg.results, msg.file); worker.userChunk(msg.results, msg.file);
delete msg.results;
delete msg.results; // free memory ASAP }
} }
if (msg.finished) if (msg.finished)

Loading…
Cancel
Save