Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
6e3c7d33
Commit
6e3c7d33
authored
Aug 08, 2014
by
Fabio Bas
Browse files
Make protobuf cleanup its resourced when servatrice ends
Should help make valgrind’s log a bit cleaner
parent
0a5106b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
servatrice/src/main.cpp
View file @
6e3c7d33
...
...
@@ -29,6 +29,7 @@
#include
"server_logger.h"
#include
"rng_sfmt.h"
#include
"version_string.h"
#include
<google/protobuf/stubs/common.h>
#ifdef Q_OS_UNIX
#include
<signal.h>
#endif
...
...
@@ -233,5 +234,8 @@ int main(int argc, char *argv[])
loggerThread
->
wait
();
delete
loggerThread
;
// Delete all global objects allocated by libprotobuf.
google
::
protobuf
::
ShutdownProtobufLibrary
();
return
retval
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment