Mathias Fröhlich:

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 ...
This commit is contained in:
ehofman
2005-10-14 16:21:57 +00:00
parent 2c14f8587e
commit 2f3e4ebf39
3 changed files with 5 additions and 0 deletions
+2
View File
@@ -2143,6 +2143,7 @@ SGPropertyNode::hash_table::bucket::~bucket ()
{ {
for (int i = 0; i < _length; i++) for (int i = 0; i < _length; i++)
delete _entries[i]; delete _entries[i];
delete [] _entries;
} }
SGPropertyNode::hash_table::entry * SGPropertyNode::hash_table::entry *
@@ -2197,6 +2198,7 @@ SGPropertyNode::hash_table::~hash_table ()
{ {
for (unsigned int i = 0; i < _data_length; i++) for (unsigned int i = 0; i < _data_length; i++)
delete _data[i]; delete _data[i];
delete [] _data;
} }
SGPropertyNode * SGPropertyNode *
+2
View File
@@ -538,6 +538,8 @@ SGTexture::ImageClose(SGTexture::ImageRec *image) {
if (image->file) gzclose(image->file); if (image->file) gzclose(image->file);
if (file) fclose(file); if (file) fclose(file);
delete[] image->tmp; delete[] image->tmp;
delete[] image->rowStart;
delete[] image->rowSize;
delete image; delete image;
} }
+1
View File
@@ -42,6 +42,7 @@ protected:
FILE *file; FILE *file;
typedef struct _ImageRec { typedef struct _ImageRec {
_ImageRec(void) : tmp(0), rowStart(0), rowSize(0) {}
unsigned short imagic; unsigned short imagic;
unsigned short type; unsigned short type;
unsigned short dim; unsigned short dim;