#include "props.hxx"
+#include <algorithm>
+#include <stdio.h>
+#include <string.h>
+
#if PROPS_STANDALONE
#include <iostream>
#else
-#include <algorithm>
#include <simgear/compiler.h>
#include <simgear/debug/logstream.hxx>
#endif
-#include <stdio.h>
-#include <string.h>
-
\f
////////////////////////////////////////////////////////////////////////
if (_tied) {
return _value.string_val->setValue(val);
} else {
- delete (char *)_local_val.string_val;
+ delete [] (char *)_local_val.string_val;
_local_val.string_val = copy_string(val);
return true;
}
delete _value.string_val;
_value.string_val = 0;
} else {
- delete (char *)_local_val.string_val;
+ delete [] (char *)_local_val.string_val;
}
_local_val.string_val = 0;
break;
*/
SGPropertyNode::~SGPropertyNode ()
{
- delete (char *)_name;
+ delete [] (char *)_name;
for (int i = 0; i < (int)_children.size(); i++) {
delete _children[i];
}