I have done a valgrind run in flightgear. Just start it up and close it at the
fist change I had about half an hour later.
property-leak.diff:
A leak in the property system which I could even notice in top.
texture-leak.diff:
minor one, but fixed is fixed ...
{
for (int i = 0; i < _length; i++)
delete _entries[i];
+ delete [] _entries;
}
SGPropertyNode::hash_table::entry *
{
for (unsigned int i = 0; i < _data_length; i++)
delete _data[i];
+ delete [] _data;
}
SGPropertyNode *
if (image->file) gzclose(image->file);
if (file) fclose(file);
delete[] image->tmp;
+ delete[] image->rowStart;
+ delete[] image->rowSize;
delete image;
}
FILE *file;
typedef struct _ImageRec {
+ _ImageRec(void) : tmp(0), rowStart(0), rowSize(0) {}
unsigned short imagic;
unsigned short type;
unsigned short dim;