summaryrefslogtreecommitdiff
path: root/src/commandhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-05-30 00:10:26 +0300
committerAndrei Karas <akaras@inbox.ru>2011-05-30 00:10:26 +0300
commita5406f20dba001d4491eb90296c181857c37eabf (patch)
treec85d6de53b28582cce008a6981554763ba464c06 /src/commandhandler.cpp
parent4bb36d523c25c2b15f08197f59f2660fe7177508 (diff)
downloadplus-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.cpp6
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_)