Jonathan Castagna scored his first NHL goal and added an empty-netter, Martin Pospisil had a goal and an assist, and Dustin Wolf made 21 saves as the Calgary Flames beat the San Jose Sharks 5-2.