Ryan Nugent-Hopkins scored into an empty net at 18:34 for the 4-2 final.
Barrie gave the Oilers a 1-0 lead at 11:49 of the second period with a one-timer from the point.
"The first one, it's just a one-timer, you're trying to hit it," Barrie said. "The second one you know you have a little bit of good draw and it kind of pops to you, so you want to take maybe a split second to kind of you know, try to pick a spot. I was lucky they both went in."
Bennett tied it 1-1 with a power-play goal on a rebound at 2:42 of the third.
"It's big for our team," Barrie said of the win. "We've kind of been up and down, up and down. We want to find some consistency in our game. So, you know, after a game in Carolina, where we maybe feel like we didn't have our best, it was nice to come back and have a good performance."
NOTES: McDavid became the fifth Edmonton player with an assist streak of at least 10 games, joining Wayne Gretzky (11 times; longest 17 games in 1983-84, Paul Coffey (four times; longest 17 games in 1985-86), Jari Kurri (15 games in 1983-84) and Glenn Anderson (10 games in 1982-83). … Oilers forward Leon Draisaitl had an assist to extend his point streak to 11 games (20 points; seven goals, 13 assists). … Florida forward Matthew Tkachuk was minus-2 with five shots on goal in 20:48 of ice time after serving a two-game suspension for high-sticking Los Angeles Kings goalie Jonathan Quick on Nov. 5. … Ekblad led the Panthers with 23:42 of ice time. He had three shots on goal, two blocked shots and was minus-1.