Commit e670b670 authored by Antoni Buszta's avatar Antoni Buszta

DestroyDefaultRepeatedFields is registered using OnShutdown.

parent e83ba13a
...@@ -1621,9 +1621,7 @@ PROTOBUF_DEFINE_DEFAULT_REPEATED(bool) ...@@ -1621,9 +1621,7 @@ PROTOBUF_DEFINE_DEFAULT_REPEATED(bool)
struct StaticDefaultRepeatedFieldsInitializer { struct StaticDefaultRepeatedFieldsInitializer {
StaticDefaultRepeatedFieldsInitializer() { StaticDefaultRepeatedFieldsInitializer() {
InitializeDefaultRepeatedFields(); InitializeDefaultRepeatedFields();
} OnShutdown(&DestroyDefaultRepeatedFields);
~StaticDefaultRepeatedFieldsInitializer() {
DestroyDefaultRepeatedFields();
} }
} static_repeated_fields_initializer; } static_repeated_fields_initializer;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment