1
0
Fork 0

fgprotocol: delete io channel on shutdown

This commit is contained in:
ThorstenB 2012-11-14 23:49:09 +01:00
parent e8fc85ef7e
commit 7fa2aecc22
2 changed files with 6 additions and 3 deletions

View file

@ -1,4 +1,4 @@
// protocol.cxx -- High level protocal class
// protocol.cxx -- High level protocol class
//
// Written by Curtis Olson, started November 1999.
//
@ -31,12 +31,15 @@ FGProtocol::FGProtocol() :
hz(0.0),
count_down(0.0),
count(0),
enabled(false)
dir(SG_IO_NONE),
enabled(false),
io(NULL)
{
}
FGProtocol::~FGProtocol() {
delete io;
}

View file

@ -1,4 +1,4 @@
// protocol.hxx -- High level protocal class
// protocol.hxx -- High level protocol class
//
// Written by Curtis Olson, started November 1999.
//