From 79588d4ea889ad1a1d276ba984ca0f1bc53b226c Mon Sep 17 00:00:00 2001 From: yankejustin Date: Mon, 16 Mar 2015 13:24:53 -0400 Subject: [PATCH] Dispose of the stream Disposed of the stream correctly. Setting to null will NOT call dispose. --- Server/Core/ProtoBuf/ProtoWriter.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Server/Core/ProtoBuf/ProtoWriter.cs b/Server/Core/ProtoBuf/ProtoWriter.cs index f7f3d7fe..7939bfc5 100644 --- a/Server/Core/ProtoBuf/ProtoWriter.cs +++ b/Server/Core/ProtoBuf/ProtoWriter.cs @@ -476,6 +476,7 @@ private void Dispose() if (dest != null) { Flush(this); + dest.Dispose(); dest = null; } model = null;