I've had the same problem with both females and males. I was never able to "cure" mine...I just had them stay in the laundry room or garage at night when I couldn't keep an eye on them. They still got away with a couple of times spraying...but I always found it :roll:, cleaned it up as best as I could. The offenders have now passed on due to old age and I'm planning on new carpet.
Try the little sweetie after you have her vet checked. Maybe it won't be a problem at your house. Good luck.