]> git.mxchange.org Git - simgear.git/blobdiff - simgear/io/tcp_server.cxx
Merge branch 'timoore/effects-anim-rebase' into next
[simgear.git] / simgear / io / tcp_server.cxx
index cd9b8ea77410ac85837f216411c9d5f3dcac52c1..672e6d968d8c9004f60b1f4e4a757e1c9d8fd1d5 100644 (file)
@@ -1,19 +1,18 @@
 #include <simgear/compiler.h>
 #include <simgear/debug/logstream.hxx>
-#include STL_STRING
-#include STL_IOSTREAM
+#include <string>
+#include <iostream>
 
 #include "sg_socket.hxx"
 
 using std::string;
-#ifndef SG_HAVE_NATIVE_SGI_COMPILERS
 using std::cout;
-#endif
 
 class TcpServer
 {
 public:
     TcpServer();
+    ~TcpServer();
     bool open();
     bool process();
     bool close();
@@ -27,6 +26,11 @@ TcpServer::TcpServer()
     channel = new SGSocket( "", "5500", "tcp" );
 }
 
+TcpServer::~TcpServer()
+{
+    delete channel;
+}
+
 bool
 TcpServer::open()
 {