libanim
diff src/anim.c @ 66:29c6c8ff99d9
merged
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 17 Apr 2014 07:58:35 +0300 |
parents | 60a46a122b0f b52f3e23e06f |
children | 6ebf9f2d1113 |
line diff
1.1 --- a/src/anim.c Thu Apr 17 07:57:52 2014 +0300 1.2 +++ b/src/anim.c Thu Apr 17 07:58:35 2014 +0300 1.3 @@ -92,10 +92,11 @@ 1.4 1.5 void anm_destroy_node(struct anm_node *node) 1.6 { 1.7 - int i; 1.8 + int i, num_anim; 1.9 free(node->name); 1.10 1.11 - for(i=0; i<ANM_NUM_TRACKS; i++) { 1.12 + num_anim = anm_get_animation_count(node); 1.13 + for(i=0; i<num_anim; i++) { 1.14 anm_destroy_animation(node->animations + i); 1.15 } 1.16 dynarr_free(node->animations);