Even though a candidate might clearly have the most delegates, a lot can happen before the convention. The leading candidate could get sick and withdrawal, or even something worse. If this were the case I believe the party would choose the nominee, but I'm not real sure. Anybody who actually paid attention in civics class feel free to chime in.