Mercurial > MadButterfly
comparison tools/mb_c_source.m4 @ 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 | bdf36a26e420 |
children | 3e84458968ec |
comparison
equal
deleted
inserted
replaced
348:04d22dc38bc0 | 349:700954870cee |
---|---|
298 rdman_shape_free(rdman, obj->$1); | 298 rdman_shape_free(rdman, obj->$1); |
299 ]]) | 299 ]]) |
300 | 300 |
301 define([F_ADD_IMAGE],[[ | 301 define([F_ADD_IMAGE],[[ |
302 rdman_shape_free(rdman, obj->$1); | 302 rdman_shape_free(rdman, obj->$1); |
303 MB_IMAGE_DATA_FREE(obj->$1_img_data); | 303 MB_IMG_DATA_FREE(obj->$1_img_data); |
304 ]]) | 304 ]]) |
305 define([F_PANGO_BEGIN_TEXT],[[ | 305 define([F_PANGO_BEGIN_TEXT],[[ |
306 rdman_shape_free(rdman, obj->$1); | 306 rdman_shape_free(rdman, obj->$1); |
307 ]]) | 307 ]]) |
308 define([F_PANGO_SIZE],[[ | 308 define([F_PANGO_SIZE],[[ |
326 FIMPORT([ADD_LINEAR_PAINT]) | 326 FIMPORT([ADD_LINEAR_PAINT]) |
327 FIMPORT([ADD_RADIAL_PAINT]) | 327 FIMPORT([ADD_RADIAL_PAINT]) |
328 FIMPORT([ADD_PATH],) | 328 FIMPORT([ADD_PATH],) |
329 FIMPORT([ADD_RECT]) | 329 FIMPORT([ADD_RECT]) |
330 FIMPORT([ADD_TEXT]) | 330 FIMPORT([ADD_TEXT]) |
331 FIMPORT([ADD_IMAGE]) | |
331 FIMPORT([PANGO_BEGIN_TEXT]) | 332 FIMPORT([PANGO_BEGIN_TEXT]) |
332 FIMPORT([FILL_SHAPE]) | 333 FIMPORT([FILL_SHAPE]) |
333 FIMPORT([STROKE_SHAPE]) | 334 FIMPORT([STROKE_SHAPE]) |
334 divert[]]) | 335 divert[]]) |
335 | 336 |
353 RIMPORT([REF_STOPS_LINEAR]) | 354 RIMPORT([REF_STOPS_LINEAR]) |
354 RIMPORT([ADD_PATH]) | 355 RIMPORT([ADD_PATH]) |
355 RIMPORT([ADD_RECT]) | 356 RIMPORT([ADD_RECT]) |
356 RIMPORT([ADD_COORD]) | 357 RIMPORT([ADD_COORD]) |
357 RIMPORT([ADD_TEXT]) | 358 RIMPORT([ADD_TEXT]) |
359 RIMPORT([ADD_IMAGE]) | |
358 RIMPORT([PANGO_BEGIN_TEXT]) | 360 RIMPORT([PANGO_BEGIN_TEXT]) |
359 RIMPORT([FILL_SHAPE]) | 361 RIMPORT([FILL_SHAPE]) |
360 RIMPORT([STROKE_SHAPE]) | 362 RIMPORT([STROKE_SHAPE]) |
361 RIMPORT([FILL_SHAPE_WITH_PAINT]) | 363 RIMPORT([FILL_SHAPE_WITH_PAINT]) |
362 RIMPORT([STROKE_SHAPE_WITH_PAINT]) | 364 RIMPORT([STROKE_SHAPE_WITH_PAINT]) |