diff options
Diffstat (limited to 'pacman-c++/client.cpp')
| -rw-r--r-- | pacman-c++/client.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pacman-c++/client.cpp b/pacman-c++/client.cpp index 4843d95..5cc9279 100644 --- a/pacman-c++/client.cpp +++ b/pacman-c++/client.cpp | |||
| @@ -67,6 +67,9 @@ bool Constants::server = false; | |||
| 67 | 67 | ||
| 68 | int main(int argc, char ** argv) | 68 | int main(int argc, char ** argv) |
| 69 | { | 69 | { |
| 70 | /* Verify that the version of the library that we linked against is | ||
| 71 | * compatible with the version of the headers we compiled against. | ||
| 72 | */ | ||
| 70 | GOOGLE_PROTOBUF_VERIFY_VERSION; | 73 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 71 | 74 | ||
| 72 | QApplication app(argc, argv, true); | 75 | QApplication app(argc, argv, true); |
| @@ -80,5 +83,10 @@ int main(int argc, char ** argv) | |||
| 80 | client.show(); | 83 | client.show(); |
| 81 | client.setWindowTitle(app.applicationName()); | 84 | client.setWindowTitle(app.applicationName()); |
| 82 | 85 | ||
| 83 | return app.exec(); | 86 | int ret = app.exec(); |
| 87 | |||
| 88 | /* Delete all global objects allocated by libprotobuf */ | ||
| 89 | google::protobuf::ShutdownProtobufLibrary(); | ||
| 90 | |||
| 91 | return ret; | ||
| 84 | } | 92 | } |
