- missed update for revised subsystem ownership in the AP code.
https://code.google.com/p/flightgear-bugs/issues/detail?id=1289
FGXMLAutopilot::Autopilot * ap = (FGXMLAutopilot::Autopilot*)get_subsystem( name );
if( ap == NULL ) return; // ?
remove_subsystem( name );
- delete ap;
}
{
public:
static FGXMLAutopilotGroup * createInstance(const std::string& nodeName);
+
void addAutopilotFromFile( const std::string & name, SGPropertyNode_ptr apNode, const char * path );
virtual void addAutopilot( const std::string & name, SGPropertyNode_ptr apNode, SGPropertyNode_ptr config ) = 0;
virtual void removeAutopilot( const std::string & name ) = 0;