diff examples/tank/tank_main.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 923d91dfb6af
children 5235aded379c
line wrap: on
line diff
--- a/examples/tank/tank_main.c	Wed Nov 19 11:26:01 2008 +0800
+++ b/examples/tank/tank_main.c	Wed Nov 19 20:53:40 2008 +0800
@@ -396,6 +396,8 @@
     word = mb_progm_next_word(progm, &start, &playing);
     mb_visibility_new(VIS_HIDDEN, bang->root_coord, word);
 
+    mb_subtree_free_new(bang->root_coord, word);
+
     mb_progm_free_completed(progm);
 
     /*! \todo Remove bang when program is completed.