Fixed animation memory leak. Instead of comparing its value we remove it by model_index. This will guarantee that all animations are freed!
Authored by: SumolX 2009-04-10
Parent: [r2224]
Child: [r2226]