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
|
// implementation of MetarRequester
|
||||||
virtual void requestMetar( MetarDataHandler * metarDataHandler, const std::string & id );
|
virtual void requestMetar( MetarDataHandler * metarDataHandler, const std::string & id );
|
||||||
|
|
||||||
|
virtual ~NoaaMetarRealWxController()
|
||||||
|
{
|
||||||
|
}
|
||||||
private:
|
private:
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@ -463,6 +466,10 @@ RealWxController * RealWxController::createInstance( SGPropertyNode_ptr rootNode
|
||||||
return new NoaaMetarRealWxController( rootNode );
|
return new NoaaMetarRealWxController( rootNode );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RealWxController::~RealWxController()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
/* -------------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
} // namespace Environment
|
} // namespace Environment
|
||||||
|
|
|
@ -29,6 +29,8 @@ namespace Environment {
|
||||||
class RealWxController : public SGSubsystem
|
class RealWxController : public SGSubsystem
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
virtual ~RealWxController();
|
||||||
|
|
||||||
static RealWxController * createInstance( SGPropertyNode_ptr rootNode );
|
static RealWxController * createInstance( SGPropertyNode_ptr rootNode );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue