Fix stream/zip leaks and infinite loop in export path by avinxshKD · Pull Request #1458 · processing/processing4
Fixes #1451
Four FileInputStream calls, a ZipFile, and the entry InputStream in packClassPathIntoZipFile were all leaking. Also the read loop would spin forever if read() returned -1 on a bad jar. Wrapped everything in try-with-resources and added an EOF break.