Skip to content

Commit c0f31cb

Browse files
committed
bug fix : delete mementos with public virtual destructor
1 parent ddedb27 commit c0f31cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Memento/Conceptual/main.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
*/
2828
class Memento {
2929
public:
30+
virtual ~Memento() {}
3031
virtual std::string GetName() const = 0;
3132
virtual std::string date() const = 0;
3233
virtual std::string state() const = 0;

0 commit comments

Comments
 (0)