added destructor

destructor called on 'delete'