libasyncio: (tomj) fix uninitialized vars, added little safety against zombie filters
[libasyncio] / asyncio / async_io.hpp
index f86f7b5..0ee1e40 100644 (file)
@@ -122,7 +122,7 @@ class FilterBase
         typedef boost::shared_ptr< FilterBase > PtrType;
     public:
         FilterBase();
-        virtual ~FilterBase() {};
+        virtual ~FilterBase() { m_io = NULL; };
 
     protected: