summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-10-21 02:18:18 +0300
committerAndrei Karas <akaras@inbox.ru>2011-10-21 02:18:18 +0300
commit60621b7cd02030ab86a670c2124fb50f237b0c4f (patch)
tree8a0c6aede83958dba8b9dc938339677a2c7930e6
parent2b696349cc1d6289b21ff667ae92a79cf9cabd17 (diff)
downloadmanaplus-60621b7cd02030ab86a670c2124fb50f237b0c4f.tar.gz
manaplus-60621b7cd02030ab86a670c2124fb50f237b0c4f.tar.bz2
manaplus-60621b7cd02030ab86a670c2124fb50f237b0c4f.tar.xz
manaplus-60621b7cd02030ab86a670c2124fb50f237b0c4f.zip
Fix possible crash in network code after destroing all not leaked objects.
-rw-r--r--src/logger.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/logger.h b/src/logger.h
index c2fabb383..4ce89f759 100644
--- a/src/logger.h
+++ b/src/logger.h
@@ -29,7 +29,7 @@
class ChatWindow;
#ifdef ENABLEDEBUGLOG
-#define DEBUGLOG(msg) logger->dlog(msg)
+#define DEBUGLOG(msg) if (logger) logger->dlog(msg)
#else
#define DEBUGLOG(msg) {}
#endif