From 6e3c7d33da2dbfe4ba5dbb1b0e6fbf1dff713853 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Fri, 8 Aug 2014 13:43:50 +0200 Subject: [PATCH] Make protobuf cleanup its resourced when servatrice ends MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Should help make valgrind’s log a bit cleaner --- servatrice/src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/servatrice/src/main.cpp b/servatrice/src/main.cpp index c5bf9cde..d90e0634 100644 --- a/servatrice/src/main.cpp +++ b/servatrice/src/main.cpp @@ -29,6 +29,7 @@ #include "server_logger.h" #include "rng_sfmt.h" #include "version_string.h" +#include #ifdef Q_OS_UNIX #include #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; }