fix the only memory leak that wasnt a false alarm, or gnu something, or sdl something.

This commit is contained in:
zeromus 2009-04-25 19:42:05 +00:00
parent 9987bd13f8
commit 78f07fd7aa
2 changed files with 6 additions and 0 deletions

View File

@ -34,6 +34,11 @@ Logger::Logger() {
flags = 0;
}
Logger::~Logger() {
for(int i=0;i<(int)channels.size();i++)
delete channels[i];
}
void Logger::vprintf(const char * format, va_list l, const char * file, unsigned int line) {
char buffer[1024];
char * cur = buffer;

View File

@ -35,6 +35,7 @@ protected:
static void fixSize(unsigned int channel);
public:
Logger();
~Logger();
void vprintf(const char * format, va_list l, const char * filename, unsigned int line);
void setOutput(std::ostream * o);