fix memory leak in TransformationHandler (thanks to WolfBehrenhoff for pointing to this)
fix memory leak, thanks to LENIAU Baptiste for pointing to this one