mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Base classes used polymorphically whose child classes have data members or
destructors must themselves have virtual destructors or Bad Things(TM) happen.
This commit is contained in:
@@ -12,6 +12,8 @@ public:
|
||||
virtual bool work(Interpreter* interpreter)=0;
|
||||
|
||||
virtual int getFee();
|
||||
|
||||
virtual ~Operation() { ; }
|
||||
};
|
||||
|
||||
// this is just an Int in the code
|
||||
|
||||
Reference in New Issue
Block a user