From 60621b7cd02030ab86a670c2124fb50f237b0c4f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 21 Oct 2011 02:18:18 +0300 Subject: Fix possible crash in network code after destroing all not leaked objects. --- src/logger.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2