Fixed memory leak with software rendering where the original surface was not freed up during rotation.