summaryrefslogtreecommitdiffstats
path: root/pacman-c++/client.cpp
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2011-04-13 17:24:38 +0200
committermanuel <manuel@mausz.at>2011-04-13 17:24:38 +0200
commit2c351a8bccdfe0fe9ad0ccb4dba5e15ef23b4c0c (patch)
treeaf5e526ab09607be5c2d6bd110d9b3319b3c65e6 /pacman-c++/client.cpp
parent346287fa182b9f31685eb6773c937b58b041e692 (diff)
downloadfoop-2c351a8bccdfe0fe9ad0ccb4dba5e15ef23b4c0c.tar.gz
foop-2c351a8bccdfe0fe9ad0ccb4dba5e15ef23b4c0c.tar.bz2
foop-2c351a8bccdfe0fe9ad0ccb4dba5e15ef23b4c0c.zip
- rewrite network methods (ugly but good performance)
- fix memleaks
Diffstat (limited to 'pacman-c++/client.cpp')
-rw-r--r--pacman-c++/client.cpp10
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
68int main(int argc, char ** argv) 68int 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}