diff --git a/Net/include/Poco/Net/SocketReactor.h b/Net/include/Poco/Net/SocketReactor.h index cd3103713..299fbf83b 100644 --- a/Net/include/Poco/Net/SocketReactor.h +++ b/Net/include/Poco/Net/SocketReactor.h @@ -1,7 +1,7 @@ // // SocketReactor.h // -// $Id: //poco/1.2/Net/include/Poco/Net/SocketReactor.h#1 $ +// $Id: //poco/1.2/Net/include/Poco/Net/SocketReactor.h#2 $ // // Library: Net // Package: Reactor @@ -192,7 +192,7 @@ protected: private: typedef Poco::AutoPtr NotifierPtr; typedef Poco::AutoPtr NotificationPtr; - typedef std::map EventHandlerMap; + typedef std::map EventHandlerMap; void dispatch(NotifierPtr& pNotifier, SocketNotification* pNotification); diff --git a/Net/samples/EchoServer/src/EchoServer.cpp b/Net/samples/EchoServer/src/EchoServer.cpp index 7aa883b6e..f884353e6 100644 --- a/Net/samples/EchoServer/src/EchoServer.cpp +++ b/Net/samples/EchoServer/src/EchoServer.cpp @@ -1,7 +1,7 @@ // // EchoServer.cpp // -// $Id: //poco/1.2/Net/samples/EchoServer/src/EchoServer.cpp#1 $ +// $Id: //poco/1.2/Net/samples/EchoServer/src/EchoServer.cpp#2 $ // // This sample demonstrates the SocketReactor and SocketAcceptor classes. // @@ -104,6 +104,7 @@ public: void onShutdown(ShutdownNotification* pNf) { + pNf->release(); delete this; }