]> git.mxchange.org Git - simgear.git/commitdiff
Patch from Melchior Franz:
authordavid <david>
Thu, 25 Apr 2002 14:56:03 +0000 (14:56 +0000)
committerdavid <david>
Thu, 25 Apr 2002 14:56:03 +0000 (14:56 +0000)
From the cosmetics department ...

simgear/misc/props.cxx

index 19cb3a98d38dfb62d2599782767ed93cfd5fcc93..28aaff912ff4ce10c5255e8d19130545dd60bb54 100644 (file)
@@ -1917,7 +1917,7 @@ SGPropertyNode::hash_table::entry::~entry ()
 {
                                // Don't delete the value; we don't own
                                // the pointer.
-  delete _key;
+  delete [] _key;
 }
 
 void
@@ -1957,7 +1957,7 @@ SGPropertyNode::hash_table::bucket::get_entry (const char * key, bool create)
     for (i = 0; i < _length; i++) {
       new_entries[i] = _entries[i];
     }
-    delete _entries;
+    delete [] _entries;
     _entries = new_entries;
     _entries[_length] = new entry;
     _entries[_length]->set_key(key);