diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/add_person.cc | 3 | ||||
-rw-r--r-- | examples/list_people.cc | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/examples/add_person.cc b/examples/add_person.cc index 2aca216b..b9ca44fc 100644 --- a/examples/add_person.cc +++ b/examples/add_person.cc @@ -88,5 +88,8 @@ int main(int argc, char* argv[]) { } } + // Optional: Delete all global objects allocated by libprotobuf. + google::protobuf::ShutdownProtobufLibrary(); + return 0; } diff --git a/examples/list_people.cc b/examples/list_people.cc index bd9a583f..5363152e 100644 --- a/examples/list_people.cc +++ b/examples/list_people.cc @@ -61,5 +61,8 @@ int main(int argc, char* argv[]) { ListPeople(address_book); + // Optional: Delete all global objects allocated by libprotobuf. + google::protobuf::ShutdownProtobufLibrary(); + return 0; } |