diff --git a/src/cpp/ripple/AccountItems.h b/src/cpp/ripple/AccountItems.h index f72e9f558a..8b2cd02133 100644 --- a/src/cpp/ripple/AccountItems.h +++ b/src/cpp/ripple/AccountItems.h @@ -17,6 +17,7 @@ public: AccountItem(){ } AccountItem(SerializedLedgerEntry::ref ledger); + virtual ~AccountItem() { ; } virtual AccountItem::pointer makeItem(const uint160& accountID, SerializedLedgerEntry::ref ledgerEntry)=0; virtual LedgerEntryType getType()=0; diff --git a/src/cpp/ripple/Offer.h b/src/cpp/ripple/Offer.h index 94a4fe837f..4765752375 100644 --- a/src/cpp/ripple/Offer.h +++ b/src/cpp/ripple/Offer.h @@ -11,6 +11,7 @@ class Offer : public AccountItem Offer(SerializedLedgerEntry::pointer ledgerEntry); // For accounts in a ledger public: Offer(){} + virtual ~Offer(){} AccountItem::pointer makeItem(const uint160&, SerializedLedgerEntry::ref ledgerEntry); LedgerEntryType getType(){ return(ltOFFER); } diff --git a/src/cpp/ripple/RippleState.h b/src/cpp/ripple/RippleState.h index 7c86e5412c..15a2657774 100644 --- a/src/cpp/ripple/RippleState.h +++ b/src/cpp/ripple/RippleState.h @@ -39,6 +39,7 @@ private: public: RippleState(){ } + virtual ~RippleState(){} AccountItem::pointer makeItem(const uint160& accountID, SerializedLedgerEntry::ref ledgerEntry); LedgerEntryType getType(){ return(ltRIPPLE_STATE); }