decodeXmlFile leaving file open

Bug #1089210 reported by Jesse Phillips
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
D Programming language Xml modules
New
Undecided
michaelrynn

Bug Description

Line 96 of slicedoc.d opens a file as a stream but never closes it. This arrises as an issue from attempting to delete a file after parsing on Windows.

Suggest
97 scope(exit) s.close();

Revision history for this message
michaelrynn (michael-rynn-500) wrote :

See version 88.

Started out ensuring stream close() on eof detection, and changes have snowballed and rolled over the cliff. Currently all development files now in xml package root, and parsers / dom are mostly templates and template classes using character type.

The std.xmlp is not quite abandoned. There is now some back-port mess cleanup, unfinished, which hopefully will be soon tidied and test verified, then pushed up. Future development in the xml package root.

Changed in d2-xml:
assignee: nobody → michaelrynn (michael-rynn-500)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.