libanim

changeset 66:29c6c8ff99d9

merged
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 17 Apr 2014 07:58:35 +0300
parents 73a26dc37e43 817a5c3a7f96
children 2a270683d31e
files src/anim.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
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);