diff --git a/src/Network/protocol.cxx b/src/Network/protocol.cxx index 69bda35f4..a76f5efdd 100644 --- a/src/Network/protocol.cxx +++ b/src/Network/protocol.cxx @@ -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; } diff --git a/src/Network/protocol.hxx b/src/Network/protocol.hxx index 03cf8357d..74948163e 100644 --- a/src/Network/protocol.hxx +++ b/src/Network/protocol.hxx @@ -1,4 +1,4 @@ -// protocol.hxx -- High level protocal class +// protocol.hxx -- High level protocol class // // Written by Curtis Olson, started November 1999. //