memory handling for FindDefocusJump

Clear all the variables at each iteration