Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/core/Utils/ObjectWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,9 @@ class BaseObjects : public Printable

public:
BaseObjects() {}
~BaseObjects() { clear(); }
// Don't clear() here: the derived class's Strings are already destroyed
// at this point and remove() would write into freed memory.
~BaseObjects() {}
void init(String *buffers, size_t size)
{
this->buffers = buffers;
Expand Down