Ticket #459 (closed defect: fixed)
mozillaLoadFile does not close input streams
| Reported by: | XavierVerges | Owned by: | SaqImtiaz |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.3.1 |
| Component: | core | Version: | |
| Severity: | medium | Keywords: | |
| Cc: |
Description
It probably does not have any adverse effects, but mozillaLoadFile() should close the streams that it has openeded before returning the contents. It is a matter of changing http://trac.tiddlywiki.org/browser/Trunk/core/js/FileSystem.js#L235
return sInputStream.read(sInputStream.available());
for
var contents = sInputStream.read(sInputStream.available()); sInputStream.close(); inputStream.close(); return contents;
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

