mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-22 08:50:09 +00:00
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:
@ -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>
|
||||
|
Reference in New Issue
Block a user