Owen Bailey, playing at centre-half all game, scored with virtually the last action of the match as he beat home goalkeeper Nathan Bishop to the ball and headed into the net to send the away fans behind the goal into raptures.
It was a cagey opening to the game, perhaps understandable given both sides came into this off the back of prolonged poor runs of form.
Rovers fashioned the best chance in the early stages: Luke Molyneux seeing a close-range effort well-saved by Nathan Bishop, with the ball flying into the air and then bouncing off the crossbar on its way to going behind for a corner.
George Broadbent then saw an effort deflected behind before the lively Wimbledon youngster Junior Nkeng drilled a vicious shot wide from the left-hand side of the visitors' box. Broadbent was at it again not long after, seeing an effort from inside the box go through a sea of bodies before coming back off a post.
Alistair Smith rifled a shot towards goal early in the second half that Zander Clark - on his league bow - did well to parry away.
Sub Billy Sharp then came close for Rovers on the hour but once again Bishop proved equal to his close-range shot. Chances were few and far between in an edgy final quarter with Marcus Browne blasting well over for the hosts.
Rovers then had a man advantage for the latter stages when sub Joe Lewis was shown a second yellow card. Just when it looked as though spoils were going to be shared, up popped Captain Fantastic Bailey to win it.
Here's the player ratings from the capital:

1. Zander Clark 6
Full league debut for the big Scot. Nothing to trouble him first half but alert to keep out a rasping drive just after the restart. Photo: Howard Roe/AHPIX LTD

2. Jamie Sterry 6
Up against lively Nkeng - making his full league bow - and largely kept him under wraps. Not as productive going forward as he'd have liked. Photo: Howard Roe/AHPIX LTD

3. Owen Bailey 9
Nothing he can't do. Skipper was deployed as a centre-half from the start and once again did not look out of place. Dominated aerially and added ample clearances for good measure - and then pinched the points at the very death. Photo: Howard Roe/AHPIX LTD

4. Jay McGrath 6
Tidy enough performance - something that was much-needed after recent sticky showings. Put in his fair share of clearances and kept it nice and simple albeit against limited opponents. Photo: Howard Roe/AHPIX LTD

