diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-10-21 02:18:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-10-21 02:18:18 +0300 |
commit | 60621b7cd02030ab86a670c2124fb50f237b0c4f (patch) | |
tree | 8a0c6aede83958dba8b9dc938339677a2c7930e6 | |
parent | 2b696349cc1d6289b21ff667ae92a79cf9cabd17 (diff) | |
download | manaplus-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.h | 2 |
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 |