[commands] Make Subsystem destructor virtual (#4892)

C++ best practice if there are other functions that are virtual.
This commit is contained in:
Dustin Spicuzza
2023-01-02 10:59:12 -05:00
committed by GitHub
parent 25db20e49d
commit 9872e676d8

View File

@@ -38,7 +38,7 @@ class CommandPtr;
*/
class Subsystem {
public:
~Subsystem();
virtual ~Subsystem();
/**
* This method is called periodically by the CommandScheduler. Useful for
* updating subsystem-specific state that you don't want to offload to a