I thought it was a clear cut penalty when I was watching the live stream, but watching it later it wasn't quite as obvious. The player had lost control of the ball and, as they all do, made the most of the collision with Gallagher (who couldn't stop sliding).
Probably still a pen under today's rules, but I've always admired Collum as one of our top referees and happy to accept his expert decision on this one