Mathias Frhlich:
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:
parent
2c14f8587e
commit
2f3e4ebf39
@ -2143,6 +2143,7 @@ SGPropertyNode::hash_table::bucket::~bucket ()
|
||||
{
|
||||
for (int i = 0; i < _length; i++)
|
||||
delete _entries[i];
|
||||
delete [] _entries;
|
||||
}
|
||||
|
||||
SGPropertyNode::hash_table::entry *
|
||||
@ -2197,6 +2198,7 @@ SGPropertyNode::hash_table::~hash_table ()
|
||||
{
|
||||
for (unsigned int i = 0; i < _data_length; i++)
|
||||
delete _data[i];
|
||||
delete [] _data;
|
||||
}
|
||||
|
||||
SGPropertyNode *
|
||||
|
@ -538,6 +538,8 @@ SGTexture::ImageClose(SGTexture::ImageRec *image) {
|
||||
if (image->file) gzclose(image->file);
|
||||
if (file) fclose(file);
|
||||
delete[] image->tmp;
|
||||
delete[] image->rowStart;
|
||||
delete[] image->rowSize;
|
||||
delete image;
|
||||
}
|
||||
|
||||
|
@ -42,6 +42,7 @@ protected:
|
||||
|
||||
FILE *file;
|
||||
typedef struct _ImageRec {
|
||||
_ImageRec(void) : tmp(0), rowStart(0), rowSize(0) {}
|
||||
unsigned short imagic;
|
||||
unsigned short type;
|
||||
unsigned short dim;
|
||||
|
Loading…
Reference in New Issue
Block a user