Fix a small leak.

This commit is contained in:
JoelKatz
2012-12-21 07:13:30 -08:00
parent fadf9aa442
commit cb5719d550

View File

@@ -166,9 +166,9 @@ void Log::setLogFile(boost::filesystem::path path)
if (outStream != NULL)
delete outStream;
outStream = newStream;
if (outStream)
Log(lsINFO) << "Starting up";
if (pathToLog != NULL)
delete pathToLog;
pathToLog = new boost::filesystem::path(path);
}