diff --git a/include/flatbuffers/flatbuffers.h b/include/flatbuffers/flatbuffers.h index 75db44aa2..8a07899e2 100644 --- a/include/flatbuffers/flatbuffers.h +++ b/include/flatbuffers/flatbuffers.h @@ -304,6 +304,7 @@ struct String : public Vector { // with custom allocation (see the FlatBufferBuilder constructor). class simple_allocator { public: + virtual ~simple_allocator() {} virtual uint8_t *allocate(size_t size) const { return new uint8_t[size]; } virtual void deallocate(uint8_t *p) const { delete[] p; } };