Mercurial > MadButterfly
diff src/shape_path.c @ 146:e96a584487af
Use elmpool to manage paint_color_t objects.
- Add a paint_color_pool member for redraw_man_t.
- Initialize and free when redraw_man_init() and redraw_man_destroy().
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Thu, 25 Sep 2008 09:53:05 +0800 |
parents | 609ed47a58f2 |
children | 52f7566777f9 |
line wrap: on
line diff
--- a/src/shape_path.c Thu Sep 25 02:13:50 2008 +0800 +++ b/src/shape_path.c Thu Sep 25 09:53:05 2008 +0800 @@ -678,6 +678,7 @@ cmd_cnt = (cmd_cnt + 3) & ~0x3; path = (sh_path_t *)malloc(sizeof(sh_path_t)); + /*! \todo Remove this memset()? */ memset(&path->shape, 0, sizeof(shape_t)); path->shape.sh_type = SHT_PATH; path->cmd_len = cmd_cnt;