From 7fa2aecc2202b04ff97f7c123a118258a5dfebc5 Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Wed, 14 Nov 2012 23:49:09 +0100 Subject: [PATCH] fgprotocol: delete io channel on shutdown --- src/Network/protocol.cxx | 7 +++++-- src/Network/protocol.hxx | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) 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. // -- 2.39.5