Add ErrorHandler virtual destructor

Virtual destructor added to the ErrorHandler since derived class
destructor should be called when destroying an object via a pointer to
the base type (ErrorHandler in this case).
This commit is contained in:
Rudolf Lovrenčić 2021-09-27 14:25:33 +02:00
parent 0dee902a69
commit 284647320d

View File

@ -41,6 +41,10 @@ public:
*/
typedef web::protocol::http::Headers Headers;
public:
/**
* Virtual destructor since the class is ment to be derived from.
* */
virtual ~ErrorHandler() = default;
/**
* Implement this method!