Dispose of the stream

Disposed of the stream correctly. Setting to null will NOT call dispose.
This commit is contained in:
yankejustin 2015-03-16 13:24:53 -04:00
parent 0f0cf6ed4c
commit 79588d4ea8
1 changed files with 1 additions and 0 deletions

View File

@ -476,6 +476,7 @@ private void Dispose()
if (dest != null)
{
Flush(this);
dest.Dispose();
dest = null;
}
model = null;