diff src/redraw_man.c @ 104:98c83441d7d6

-
author Thinker K.F. Li <thinker@branda.to>
date Thu, 11 Sep 2008 09:14:58 +0800
parents 9b4a02bcaeb1
children 1909d53071ab
line wrap: on
line diff
--- a/src/redraw_man.c	Wed Sep 10 13:44:07 2008 +0800
+++ b/src/redraw_man.c	Thu Sep 11 09:14:58 2008 +0800
@@ -300,8 +300,8 @@
 int rdman_remove_shape(redraw_man_t *rdman, shape_t *shape) {
     STAILQ_REMOVE(rdman->all_geos, geo_t, next, shape->geo);
     subject_free(&rdman->ob_factory, shape->geo->mouse_event);
+    sh_detach_geo(shape);
     elmpool_elm_free(rdman->geo_pool, shape->geo);
-    sh_detach_geo(shape);
     rdman->n_geos--;
     sh_detach_coord(shape);
     return OK;