Skip to content

Commit 6b0a7b6

Browse files
committed
Add missing virtual destructor
1 parent 63e73b0 commit 6b0a7b6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/Interpreter/interpreter.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,3 +462,5 @@ void Interpreter::report_overflow(Module *m, uint8_t *maddr) {
462462
m->memory.bytes + m->memory.pages * (uint32_t)PAGE_SIZE, maddr);
463463
sprintf(exception, "out of bounds memory access");
464464
}
465+
466+
Interpreter::~Interpreter() {}

src/Interpreter/interpreter.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
class Interpreter {
88
public:
9+
virtual ~Interpreter();
10+
911
/**
1012
* Push a new frame on to the call stack
1113
* @param m module

0 commit comments

Comments
 (0)