The Return of Jafar (1994) ending / spoiler
Iago kicks Jafar's lamp down into the lava just as Aladdin is about to fall in. Genie helps get everyone to safety, and Jafar is destroyed. Iago is allowed to stay with Aladdin and his friends, who all decide to go and see the world before Aladdin and Jasmine get married.
Submitted by Lyger