diff src/redraw_man.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 65cabbdd5284
children 50d253d0fcba
line wrap: on
line diff
--- a/src/redraw_man.c	Sun Jan 04 11:42:32 2009 +0800
+++ b/src/redraw_man.c	Sun Jan 04 12:09:29 2009 +0800
@@ -474,6 +474,7 @@
 	elmpool_elm_free(rdman->geo_pool, geo);
     }
     STAILQ_REMOVE(rdman->shapes, shape_t, sh_next, shape);
+    mb_prop_store_destroy(&shape->obj.props);
     shape->free(shape);
 
     if(rdman->last_mouse_over == (mb_obj_t *)shape)
@@ -638,6 +639,7 @@
 
     RM_CHILD(parent, coord);
     subject_free(coord->mouse_event);
+    mb_prop_store_destroy(&coord->obj.props);
     elmpool_elm_free(rdman->coord_pool, coord);
     rdman->n_coords--;