fgprotocol: delete io channel on shutdown
This commit is contained in:
parent
e8fc85ef7e
commit
7fa2aecc22
2 changed files with 6 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
// protocol.cxx -- High level protocal class
|
// protocol.cxx -- High level protocol class
|
||||||
//
|
//
|
||||||
// Written by Curtis Olson, started November 1999.
|
// Written by Curtis Olson, started November 1999.
|
||||||
//
|
//
|
||||||
|
@ -31,12 +31,15 @@ FGProtocol::FGProtocol() :
|
||||||
hz(0.0),
|
hz(0.0),
|
||||||
count_down(0.0),
|
count_down(0.0),
|
||||||
count(0),
|
count(0),
|
||||||
enabled(false)
|
dir(SG_IO_NONE),
|
||||||
|
enabled(false),
|
||||||
|
io(NULL)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
FGProtocol::~FGProtocol() {
|
FGProtocol::~FGProtocol() {
|
||||||
|
delete io;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// protocol.hxx -- High level protocal class
|
// protocol.hxx -- High level protocol class
|
||||||
//
|
//
|
||||||
// Written by Curtis Olson, started November 1999.
|
// Written by Curtis Olson, started November 1999.
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue