Skip to content

Commit 5744c7c

Browse files
committed
Add missing virtual destructor
1 parent 2d03844 commit 5744c7c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/Interpreter/interpreter.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,4 +458,6 @@ void Interpreter::report_overflow(Module *m, uint8_t *maddr) {
458458
dbg_warn("memory start: %p, memory end: %p, maddr: %p\n", m->memory.bytes,
459459
m->memory.bytes + m->memory.pages * (uint32_t)PAGE_SIZE, maddr);
460460
sprintf(exception, "out of bounds memory access");
461-
}
461+
}
462+
463+
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)