From d2c42029b98c665725768b891aa877eb3267664f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 24 May 2011 00:38:44 +0300 Subject: Add simple memory leak detector. Can be enabled by configure option -enable-memdebug=yes. Known issue: not all memory allocations hooked with it. --- src/gui/whoisonline.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/gui/whoisonline.cpp') diff --git a/src/gui/whoisonline.cpp b/src/gui/whoisonline.cpp index c1b7f03d1..dfb896778 100644 --- a/src/gui/whoisonline.cpp +++ b/src/gui/whoisonline.cpp @@ -48,6 +48,16 @@ // Curl should be included after Guichan to avoid Windows redefinitions #include +#include "debug.h" + +#ifdef free +#undef free +#endif + +#ifdef malloc +#undef malloc +#endif + bool stringCompare(const std::string &left, const std::string &right); bool stringCompare(const std::string &left, const std::string &right ) -- cgit v1.2.3-70-g09d2