Merge "Fixed missing virtual destructor in allocator." into ub-games-master
This commit is contained in:
commit
10f4ecac26
|
@ -304,6 +304,7 @@ struct String : public Vector<char> {
|
|||
// 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; }
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue