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 /src | |
parent | 2b696349cc1d6289b21ff667ae92a79cf9cabd17 (diff) | |
download | mv-60621b7cd02030ab86a670c2124fb50f237b0c4f.tar.gz mv-60621b7cd02030ab86a670c2124fb50f237b0c4f.tar.bz2 mv-60621b7cd02030ab86a670c2124fb50f237b0c4f.tar.xz mv-60621b7cd02030ab86a670c2124fb50f237b0c4f.zip |
Fix possible crash in network code after destroing all not leaked objects.
Diffstat (limited to 'src')
-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 |