Mercurial > MadButterfly
diff 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 |
line wrap: on
line diff
--- a/src/animate.c Wed Nov 19 11:26:01 2008 +0800 +++ b/src/animate.c Wed Nov 19 20:53:40 2008 +0800 @@ -127,6 +127,10 @@ #ifndef UNITTEST factory = rdman_get_ob_factory(rdman); progm->complete = subject_new(factory, progm, OBJT_PROGM); + if(progm->complete == NULL) { + free(progm); + return NULL; + } #endif /* UNITTEST */ progm->n_words = 0;