diff options
author | kenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2009-07-24 01:00:35 +0000 |
---|---|---|
committer | kenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2009-07-24 01:00:35 +0000 |
commit | d2fd0638c309113ccae3731a58e30419f522269a (patch) | |
tree | 19765ef6018015a1ae7a84ead0dd13592c2442b5 /examples | |
parent | 31afcd730b279a6aa810cee447757725a7031353 (diff) | |
download | protobuf-d2fd0638c309113ccae3731a58e30419f522269a.tar.gz protobuf-d2fd0638c309113ccae3731a58e30419f522269a.tar.bz2 protobuf-d2fd0638c309113ccae3731a58e30419f522269a.zip |
Down-integrate some code from an internal branch. (More to come.)
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; } |