I've been told that taking decongestant tablets is a good way to prevent earache. Take one the day before flying, one on the day and one the day after.