From 4e6676ccca96ba6864151305ea12595535a31fdb Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Tue, 24 Jan 2012 09:08:54 -0600 Subject: [PATCH] adds virtual destructors where appropriate --- src/endpoint.hpp | 1 + src/processors/processor.hpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/endpoint.hpp b/src/endpoint.hpp index 1b96eeb5df..cac249bf64 100644 --- a/src/endpoint.hpp +++ b/src/endpoint.hpp @@ -410,6 +410,7 @@ struct endpoint_traits< endpoint > { typedef typename connection_type::ptr connection_ptr; typedef typename message::data::ptr message_ptr; + virtual ~handler() {} /// on_load is the first callback called for a handler after a new /// connection has been transferred to it mid flight. diff --git a/src/processors/processor.hpp b/src/processors/processor.hpp index 9919f96d87..dc0e3913cc 100644 --- a/src/processors/processor.hpp +++ b/src/processors/processor.hpp @@ -84,6 +84,7 @@ namespace processor { class processor_base { public: + virtual ~processor_base() {} // validate client handshake // validate server handshake