Mercurial > MadButterfly
comparison src/event.c @ 251:f08b3ba9c1d8
Remove potential memory address error.
- Fix memory address error in mb_prop_store_destroy().
- Invoke mb_prop_store_destroy() in redraw_man.c to free property stores
for coord and shape objects.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sun, 04 Jan 2009 12:09:29 +0800 |
parents | bd8ea44b421e |
children | 29acbd8a0dd0 |
comparison
equal
deleted
inserted
replaced
250:bd8ea44b421e | 251:f08b3ba9c1d8 |
---|---|
722 shape = (shape_t *)obj; | 722 shape = (shape_t *)obj; |
723 area = sh_get_area(shape); | 723 area = sh_get_area(shape); |
724 } else { | 724 } else { |
725 coord = (coord_t *)obj; | 725 coord = (coord_t *)obj; |
726 area = coord_get_area(coord); | 726 area = coord_get_area(coord); |
727 shape = NULL; | |
727 } | 728 } |
728 | 729 |
729 if(IS_MBO_SHAPES(others_root)) { | 730 if(IS_MBO_SHAPES(others_root)) { |
730 candi_shape = (shape_t *)others_root; | 731 candi_shape = (shape_t *)others_root; |
731 candi_area = sh_get_area(candi_shape); | 732 candi_area = sh_get_area(candi_shape); |