File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -1092,14 +1092,16 @@ bool AllowedExtendeeInProto3(const std::string& name) {
10921092}
10931093
10941094const FeatureSetDefaults& GetCppFeatureSetDefaults () {
1095- static const FeatureSetDefaults* default_spec = [] {
1096- auto * defaults = new FeatureSetDefaults ();
1097- internal::ParseNoReflection (
1098- absl::string_view{PROTOBUF_INTERNAL_CPP_EDITION_DEFAULTS,
1099- sizeof (PROTOBUF_INTERNAL_CPP_EDITION_DEFAULTS) - 1 },
1100- *defaults);
1101- return defaults;
1102- }();
1095+ static const FeatureSetDefaults* default_spec =
1096+ internal::OnShutdownDelete ([] {
1097+ auto * defaults = new FeatureSetDefaults ();
1098+ internal::ParseNoReflection (
1099+ absl::string_view{
1100+ PROTOBUF_INTERNAL_CPP_EDITION_DEFAULTS,
1101+ sizeof (PROTOBUF_INTERNAL_CPP_EDITION_DEFAULTS) - 1 },
1102+ *defaults);
1103+ return defaults;
1104+ }());
11031105 return *default_spec;
11041106}
11051107
You can’t perform that action at this time.
0 commit comments