aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorkenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d>2009-07-24 01:00:35 +0000
committerkenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d>2009-07-24 01:00:35 +0000
commitd2fd0638c309113ccae3731a58e30419f522269a (patch)
tree19765ef6018015a1ae7a84ead0dd13592c2442b5 /examples
parent31afcd730b279a6aa810cee447757725a7031353 (diff)
downloadprotobuf-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.cc3
-rw-r--r--examples/list_people.cc3
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;
}