Here's a game where I probably didn't play the middlegame as accurately as I should have, but managed to win a drawn game because of a horribly blunder by my opponent far into it. I was able to successfully hang on to my h and g pawns and queen one of them.
A second horrible blunder from him at the end helped, but I still think you will find this instructive.