I often use expression like these
- I came to this place before him getting here (rather than using before he got here).
- We were having a lot of fun before before her getting here (instead of before she got here).
I did not see a lot of results on the web for expressions like these, so I am wondering whether it is right or not?