X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Flogger.h;h=d6bd07498d35df79bf5fae6b3d287553ff523ad7;hb=3d8ec5dbd9cfde34fcbc63ad7b9b1369866f0a33;hp=d88706214509920f39201510bf9e1778242bd621;hpb=2699c4d76435f2368c1064afdbee5fdbb057ef36;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/logger.h b/include/logger.h index d88706214..d6bd07498 100644 --- a/include/logger.h +++ b/include/logger.h @@ -161,6 +161,12 @@ class CoreExport LogManager : public classbase Logging = false; } + ~LogManager() + { + if (noforkstream) + delete noforkstream; + } + /** Sets up the logstream for -nofork. Called by InspIRCd::OpenLog() and LogManager::OpenFileLogs(). * First time called it creates the nofork stream and stores it in noforkstream. Each call thereafter just readds it to GlobalLogStreams * and updates the loglevel.