You swiftly think to use an Ice spell.
You manage to spit the apple out and...
"Dematran!" you shout, and a shower of ice shards begin falling from the sky, dousing the fire, and breaking you free. The ice pummels the bodies of the gnolls, making them writhe in pain. Then, you grab a weapon to finish them off.