This fixes T44185.
Free unexisting particles only after computing texture influence. I don't know if it is a perfect solution, because memory usage went up, and also many more particles are evaluated, but it seems to be a better way to do it than freeing before texture influence.