The destructor of the algorithm base class is not a virtual function, so the inherited class is not released correctly.
The destructor of the algorithm base class is not a virtual function, so the inherited class is not released correctly.