A refrigeration cycle apparatus comprising: a refrigeration cycle circuit in which refrigerant circulates, the refrigeration cycle circuit including: a compressor, an outdoor heat exchanger serving as an evaporator, and an indoor heat exchanger serving as a condenser; in the refrigeration cycle circuit, when a section between the outdoor heat exchanger and the indoor heat exchanger including the compressor is defined as a first section, and in the refrigeration cycle circuit, when a section between the outdoor heat exchanger and the indoor heat exchanger excluding the compressor is defined as a second section, a first valve provided in the first section; a second valve provided in the second section; in the refrigeration cycle circuit, when a section between the first valve and the second valve including the indoor heat exchanger is defined as a third section, a pressure sensor provided in the third section; a temperature sensor configured to detect an ambient temperature of the third section; a controller, the controller being configured to: set the first valve in a closed state at a first timing at which the compressor is stopped, set the second valve in a closed state at a second timing that follows the first timing, acquire a pressure Pb representing a pressure of the third section at the first timing, at a moment between the first timing and the second timing, at the second timing, or during an operation of the compressor, and when relationships Pa < Pb and Pa < Pc are satisfied where a pressure Pa represents a pressure of the third section detected during the period in which the compressor is stopped and after the acquisition of the pressure Pb, and a pressure Pc represents a saturation gas pressure of the ambient temperature detected during the period in which the compressor is stopped and after the acquisition of the pressure Pb, determine that there is a leakage of the refrigerant. a refrigeration cycle circuit in which refrigerant circulates, the refrigeration cycle circuit including: a compressor, an outdoor heat exchanger serving as an evaporator, and an indoor heat exchanger serving as a condenser; a compressor, an outdoor heat exchanger serving as an evaporator, and an indoor heat exchanger serving as a condenser; in the refrigeration cycle circuit, when a section between the outdoor heat exchanger and the indoor heat exchanger including the compressor is defined as a first section, and in the refrigeration cycle circuit, when a section between the outdoor heat exchanger and the indoor heat exchanger excluding the compressor is defined as a second section, a first valve provided in the first section; a second valve provided in the second section; in the refrigeration cycle circuit, when a section between the first valve and the second valve including the indoor heat exchanger is defined as a third section, a pressure sensor provided in the third section; a temperature sensor configured to detect an ambient temperature of the third section; a controller, the controller being configured to: set the first valve in a closed state at a first timing at which the compressor is stopped, set the second valve in a closed state at a second timing that follows the first timing, acquire a pressure Pb representing a pressure of the third section at the first timing, at a moment between the first timing and the second timing, at the second timing, or during an operation of the compressor, and when relationships Pa < Pb and Pa < Pc are satisfied where a pressure Pa represents a pressure of the third section detected during the period in which the compressor is stopped and after the acquisition of the pressure Pb, and a pressure Pc represents a saturation gas pressure of the ambient temperature detected during the period in which the compressor is stopped and after the acquisition of the pressure Pb, determine that there is a leakage of the refrigerant. set the first valve in a closed state at a first timing at which the compressor is stopped, set the second valve in a closed state at a second timing that follows the first timing, acquire a pressure Pb representing a pressure of the third section at the first timing, at a moment between the first timing and the second timing, at the second timing, or during an operation of the compressor, and when relationships Pa < Pb and Pa < Pc are satisfied where a pressure Pa represents a pressure of the third section detected during the period in which the compressor is stopped and after the acquisition of the pressure Pb, and a pressure Pc represents a saturation gas pressure of the ambient temperature detected during the period in which the compressor is stopped and after the acquisition of the pressure Pb, determine that there is a leakage of the refrigerant.