Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/qt
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2012-09-07 19:19:51 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:43:12 +0300
commite874d2adbf248115a62b28427fcfbe39c96ceea9 (patch)
treea1363eb4ea8e032fcabd93af61455e8c6726b0b6 /qt
parent3d3bfb13659f92f006a4d3b4e300997273744ee4 (diff)
Fix memory leaks in search when exception is thrown.
Diffstat (limited to 'qt')
-rw-r--r--qt/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt/main.cpp b/qt/main.cpp
index 57890c941b..d498210c14 100644
--- a/qt/main.cpp
+++ b/qt/main.cpp
@@ -6,6 +6,7 @@
#include "../base/logging.hpp"
#include "../base/macros.hpp"
+#include "../base/object_tracker.hpp"
#include "../coding/file_reader.hpp"
@@ -109,6 +110,8 @@ int main(int argc, char * argv[])
returnCode = a.exec();
}
+ dbg::ObjectTracker::PrintLeaks();
+
LOG_SHORT(LINFO, ("MapsWithMe finished with code", returnCode));
return returnCode;
}