summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authormustiikhalil <mustii@mmk.one>2020-10-26 22:38:24 +0300
committerGitHub <noreply@github.com>2020-10-26 12:38:24 -0700
commitc7586e85aae55e7b364fd99b5e45b52f036a086c (patch)
treeef57f32a748380b1bf79beadf8a3c949e08e16c7 /net
parent914c6460144d98efc09b0e1f1bd329bb715a4973 (diff)
downloadflatbuffers-c7586e85aae55e7b364fd99b5e45b52f036a086c.tar.gz
flatbuffers-c7586e85aae55e7b364fd99b5e45b52f036a086c.tar.bz2
flatbuffers-c7586e85aae55e7b364fd99b5e45b52f036a086c.zip
Empties the sharedString map on reset on go and csharp (#6187)
Fixes go tests
Diffstat (limited to 'net')
-rw-r--r--net/FlatBuffers/FlatBufferBuilder.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/FlatBuffers/FlatBufferBuilder.cs b/net/FlatBuffers/FlatBufferBuilder.cs
index 6c8d3e46..ba383948 100644
--- a/net/FlatBuffers/FlatBufferBuilder.cs
+++ b/net/FlatBuffers/FlatBufferBuilder.cs
@@ -90,6 +90,10 @@ namespace FlatBuffers
_objectStart = 0;
_numVtables = 0;
_vectorNumElems = 0;
+ if (_sharedStringMap != null)
+ {
+ _sharedStringMap.Clear();
+ }
}
/// <summary>