Mercurial > MadButterfly
changeset 349:700954870cee
Free sh_image_t & mb_img_data_t objects when free a sprite.
- In previsouly, code generated by svg2code.py forget to free
sh_image_t and mb_image_data_t.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sun, 08 Mar 2009 22:45:14 +0800 |
parents | 04d22dc38bc0 |
children | 892f4efe2e48 |
files | tools/mb_c_source.m4 |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/mb_c_source.m4 Sun Mar 08 22:24:54 2009 +0800 +++ b/tools/mb_c_source.m4 Sun Mar 08 22:45:14 2009 +0800 @@ -300,7 +300,7 @@ define([F_ADD_IMAGE],[[ rdman_shape_free(rdman, obj->$1); - MB_IMAGE_DATA_FREE(obj->$1_img_data); + MB_IMG_DATA_FREE(obj->$1_img_data); ]]) define([F_PANGO_BEGIN_TEXT],[[ rdman_shape_free(rdman, obj->$1); @@ -328,6 +328,7 @@ FIMPORT([ADD_PATH],) FIMPORT([ADD_RECT]) FIMPORT([ADD_TEXT]) +FIMPORT([ADD_IMAGE]) FIMPORT([PANGO_BEGIN_TEXT]) FIMPORT([FILL_SHAPE]) FIMPORT([STROKE_SHAPE]) @@ -355,6 +356,7 @@ RIMPORT([ADD_RECT]) RIMPORT([ADD_COORD]) RIMPORT([ADD_TEXT]) +RIMPORT([ADD_IMAGE]) RIMPORT([PANGO_BEGIN_TEXT]) RIMPORT([FILL_SHAPE]) RIMPORT([STROKE_SHAPE])