diff options
author | 2015-08-25 22:01:12 -0700 | |
---|---|---|
committer | 2015-08-25 22:01:12 -0700 | |
commit | 0977815af285cea479633c6a4017079cb1f2ccac (patch) | |
tree | 9ece4ccf3cc0af5bbad391f13a2b66dd945a3c92 /src/google/protobuf/util/internal/protostream_objectwriter.h | |
parent | 01e060f20e7bafec3a073b7d41ad4c29a882b42b (diff) |
fix "memory leaks" in protostream-object files.
Change-Id: I0aca56802d974cb03cb89c1a294f37068b5b9758
Diffstat (limited to 'src/google/protobuf/util/internal/protostream_objectwriter.h')
-rw-r--r-- | src/google/protobuf/util/internal/protostream_objectwriter.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/google/protobuf/util/internal/protostream_objectwriter.h b/src/google/protobuf/util/internal/protostream_objectwriter.h index f11c47c0..8f49120b 100644 --- a/src/google/protobuf/util/internal/protostream_objectwriter.h +++ b/src/google/protobuf/util/internal/protostream_objectwriter.h @@ -407,7 +407,9 @@ class LIBPROTOBUF_EXPORT ProtoStreamObjectWriter : public StructuredObjectWriter // Helper functions to create the map and find functions responsible for // rendering well known types, keyed by type URL. - static hash_map<string, TypeRenderer>* CreateRendererMap(); + static hash_map<string, TypeRenderer>* renderers_; + static void InitRendererMap(); + static void DeleteRendererMap(); static TypeRenderer* FindTypeRenderer(const string& type_url); // Returns the ProtoElement::ElementType for the given Type. |