diff options
author | mustiikhalil <mustii@mmk.one> | 2020-10-26 22:38:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-26 12:38:24 -0700 |
commit | c7586e85aae55e7b364fd99b5e45b52f036a086c (patch) | |
tree | ef57f32a748380b1bf79beadf8a3c949e08e16c7 /net/FlatBuffers | |
parent | 914c6460144d98efc09b0e1f1bd329bb715a4973 (diff) | |
download | flatbuffers-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/FlatBuffers')
-rw-r--r-- | net/FlatBuffers/FlatBufferBuilder.cs | 4 |
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> |