From f8e420612fcc94a7a3f2455f357d7d57ff31c62d Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Thu, 16 Sep 2010 09:25:18 +0300 Subject: modified: gpg_wrapper.cpp modified: log.cpp modified: log.h modified: main.cpp modified: new_gpg.rc modified: options.cpp modified: resource.h --- log.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'log.cpp') diff --git a/log.cpp b/log.cpp index f842f22..187ce85 100644 --- a/log.cpp +++ b/log.cpp @@ -72,7 +72,15 @@ void logtofile::init() { extern bool bDebugLog; if(bDebugLog) + { + if(path) + mir_free(path); path = UniGetContactSettingUtf(NULL, szGPGModuleName, "szLogFilePath", _T("C:\\GPGdebug.log")); + } +} +logtofile::logtofile() +{ + path = NULL; } logtofile::~logtofile() { -- cgit v1.2.3