diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-05-30 00:10:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-05-30 00:10:26 +0300 |
commit | a5406f20dba001d4491eb90296c181857c37eabf (patch) | |
tree | c85d6de53b28582cce008a6981554763ba464c06 /src/commandhandler.cpp | |
parent | 4bb36d523c25c2b15f08197f59f2660fe7177508 (diff) | |
download | plus-a5406f20dba001d4491eb90296c181857c37eabf.tar.gz plus-a5406f20dba001d4491eb90296c181857c37eabf.tar.bz2 plus-a5406f20dba001d4491eb90296c181857c37eabf.tar.xz plus-a5406f20dba001d4491eb90296c181857c37eabf.zip |
Improve memory leak detector.
Add /dump chat command.
Diffstat (limited to 'src/commandhandler.cpp')
-rw-r--r-- | src/commandhandler.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp index ece2ccb44..276cd741a 100644 --- a/src/commandhandler.cpp +++ b/src/commandhandler.cpp @@ -1157,6 +1157,12 @@ void CommandHandler::handleDump(const std::string &args, + toString(res->size())); } } +#elif defined ENABLE_MEM_DEBUG +void CommandHandler::handleDump(const std::string &args _UNUSED_, + ChatTab *tab _UNUSED_) +{ + check_leaks(); +} #else void CommandHandler::handleDump(const std::string &args _UNUSED_, ChatTab *tab _UNUSED_) |