deleting allocated EventData