From: david Date: Thu, 25 Apr 2002 14:56:03 +0000 (+0000) Subject: Patch from Melchior Franz: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d198e962b0757aad569765b4d812f3a2d3cf55ac;p=simgear.git Patch from Melchior Franz: From the cosmetics department ... --- diff --git a/simgear/misc/props.cxx b/simgear/misc/props.cxx index 19cb3a98..28aaff91 100644 --- a/simgear/misc/props.cxx +++ b/simgear/misc/props.cxx @@ -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);