Trying to make sure events are cleared on allocator free.