]> git.mxchange.org Git - flightgear.git/commitdiff
Stop the property tree from keeping a shadow of the deleted input properties, as...
authorStuart Buchanan <stuart_d_buchanan@yahoo.co.uk>
Sat, 25 Aug 2012 21:23:55 +0000 (22:23 +0100)
committerStuart Buchanan <stuart_d_buchanan@yahoo.co.uk>
Sat, 25 Aug 2012 21:23:55 +0000 (22:23 +0100)
src/Input/FGDeviceConfigurationMap.cxx

index 5680149f13efb8ab26fe0627536722a3f86b1171..b4b6b1baf24d278812efb5990cc3df4e7f0f8bce 100644 (file)
@@ -54,7 +54,10 @@ FGDeviceConfigurationMap::FGDeviceConfigurationMap( const char * relative_path,
 
 FGDeviceConfigurationMap::~FGDeviceConfigurationMap()
 {
-  base->removeChildren( childname );
+  // Ensure that the children don't hang around when deleted, as if 
+  // re-created, we need to ensure that the set of names doesn't contain
+  // any unexpected history.
+  base->removeChildren( childname, false );
 }
 
 void FGDeviceConfigurationMap::scan_dir(const SGPath & path, int *index)