]> git.mxchange.org Git - flightgear.git/commitdiff
fgprotocol: delete io channel on shutdown
authorThorstenB <brehmt@gmail.com>
Wed, 14 Nov 2012 22:49:09 +0000 (23:49 +0100)
committerThorstenB <brehmt@gmail.com>
Thu, 15 Nov 2012 19:20:40 +0000 (20:20 +0100)
src/Network/protocol.cxx
src/Network/protocol.hxx

index 69bda35f4e7d3e4736a45fb849bd6bbcff342df6..a76f5efdd7a841ac4b09699f6b27d6fb677d1ef9 100644 (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;
 }
 
 
index 03cf8357d9ed3099e59610deb8a6dd1ac8f9fa8e..74948163e4fec1aab2b549083d186f5077b6d9b9 100644 (file)
@@ -1,4 +1,4 @@
-// protocol.hxx -- High level protocal class
+// protocol.hxx -- High level protocol class
 //
 // Written by Curtis Olson, started November 1999.
 //