diff options
author | vng <viktor.govako@gmail.com> | 2012-09-07 19:19:51 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:43:12 +0300 |
commit | e874d2adbf248115a62b28427fcfbe39c96ceea9 (patch) | |
tree | a1363eb4ea8e032fcabd93af61455e8c6726b0b6 /qt | |
parent | 3d3bfb13659f92f006a4d3b4e300997273744ee4 (diff) |
Fix memory leaks in search when exception is thrown.
Diffstat (limited to 'qt')
-rw-r--r-- | qt/main.cpp | 3 |
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; } |