A wall of a uterus is ablated by expanding a structure in the uterus and applying energy across the wall of the structure into the uterine wall. An exterior surface of the structure conforms to an inner wall of the uterus, and the energy may cause vapor to collect between the wall and the structure. The vapor is released by providing a barrier to release which is inflated at a pressure above which the barrier at least partially collapses to allow the vapor to leave the uterus.