diff options
Diffstat (limited to 'log.cpp')
-rw-r--r-- | log.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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() { |