fixed bug retain count / overrelease delegate : setOrientation now checks if view is available to avoid crash