Police officers have closed a case on an alleged flasher “pleasured himself” in front of a teenage girl.