Currently the destructor would try to free unallocated memory. This could e.g. be triggered by the input framework reading a set with an invalid element.