# HG changeset patch # User Thinker K.F. Li # Date 1236523514 -28800 # Node ID 700954870ceefcc8f5b7ac66bf8612cd8c9029a2 # Parent 04d22dc38bc0cf23d6d23177386d8cc1d52aaafd 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. diff -r 04d22dc38bc0 -r 700954870cee tools/mb_c_source.m4 --- 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])