Check Registered base class provides virtual destructor

The base class of Registered must provide a virtual destructor to enable
safe deletion with just a base class pointer. This requirement can be
lifted by using Registered_no_delete in places where the deletion
property is not needed.

Fixes #2331
This commit is contained in:
Christian Helmuth
2017-03-14 11:51:15 +01:00
parent 139525b6c9
commit b35df4578b
6 changed files with 32 additions and 6 deletions

View File

@ -63,6 +63,8 @@ class Input_filter::Input_connection
_connection.sigh(_input_handler);
}
virtual ~Input_connection() { }
Session_label label() const { return _label; }
template <typename FUNC>