https://issues.dlang.org/show_bug.cgi?id=14868

Vladimir Panteleev <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #11 from Vladimir Panteleev <[email protected]> ---
The problem here is that MmFile does not retain a copy of the File. As such,
the File will be closed at the end of that statement, as it was a temporary
that was never copied anywhere. The correct fix would be to add a private File
field to MmFile and make it save a copy of the File parameter.

--

Reply via email to