Ensure the stream is flushed - this is important for MemoryAccessor which allocates buffers larger than the actual data size

This commit is contained in:
Michael Becker 2019-08-19 12:24:50 -04:00
parent 7c2ed47d92
commit 7d832b6143

View File

@ -128,6 +128,7 @@ namespace UniversalEditor
objectModel.Accessor = document.OutputAccessor;
document.OutputAccessor.Open();
document.Save();
document.OutputAccessor.Flush();
if (autoClose) document.OutputAccessor.Close();
return document;
}