Reset: ensure Wx controller destroys cleanly.
This commit is contained in:
parent
35dad8c4c4
commit
75a01aa588
2 changed files with 10 additions and 1 deletions
|
@ -382,6 +382,9 @@ public:
|
|||
// implementation of MetarRequester
|
||||
virtual void requestMetar( MetarDataHandler * metarDataHandler, const std::string & id );
|
||||
|
||||
virtual ~NoaaMetarRealWxController()
|
||||
{
|
||||
}
|
||||
private:
|
||||
|
||||
};
|
||||
|
@ -457,11 +460,15 @@ void NoaaMetarRealWxController::requestMetar
|
|||
}
|
||||
|
||||
/* -------------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
RealWxController * RealWxController::createInstance( SGPropertyNode_ptr rootNode )
|
||||
{
|
||||
return new NoaaMetarRealWxController( rootNode );
|
||||
}
|
||||
|
||||
RealWxController::~RealWxController()
|
||||
{
|
||||
}
|
||||
|
||||
/* -------------------------------------------------------------------------------- */
|
||||
|
||||
|
|
|
@ -29,6 +29,8 @@ namespace Environment {
|
|||
class RealWxController : public SGSubsystem
|
||||
{
|
||||
public:
|
||||
virtual ~RealWxController();
|
||||
|
||||
static RealWxController * createInstance( SGPropertyNode_ptr rootNode );
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue