comparison src/animate.c @ 194:45d9a1e2764d

Add mb_subtree_free animate action and fix bugs. - Free members of a coord in rdman_coord_subtree_free(). - Fix core dump issue of subject_notify() that can not free subjects well.
author Thinker K.F. Li <thinker@branda.to>
date Wed, 19 Nov 2008 20:53:40 +0800
parents 54fdc2a65242
children f90c60967a9c
comparison
equal deleted inserted replaced
193:923d91dfb6af 194:45d9a1e2764d
125 progm->rdman = rdman; 125 progm->rdman = rdman;
126 126
127 #ifndef UNITTEST 127 #ifndef UNITTEST
128 factory = rdman_get_ob_factory(rdman); 128 factory = rdman_get_ob_factory(rdman);
129 progm->complete = subject_new(factory, progm, OBJT_PROGM); 129 progm->complete = subject_new(factory, progm, OBJT_PROGM);
130 if(progm->complete == NULL) {
131 free(progm);
132 return NULL;
133 }
130 #endif /* UNITTEST */ 134 #endif /* UNITTEST */
131 135
132 progm->n_words = 0; 136 progm->n_words = 0;
133 progm->max_words = max_words; 137 progm->max_words = max_words;
134 for(i = 0; i < max_words; i++) 138 for(i = 0; i < max_words; i++)