On the variability of the period of RR Leonis