Enlightenment CVS committal Author : englebass Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_zone.c Log Message: Remove unecessary event free, default is to free the event struct. =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_zone.c,v retrieving revision 1.125 retrieving revision 1.126 diff -u -3 -r1.125 -r1.126 --- e_zone.c 22 Nov 2007 20:08:07 -0000 1.125 +++ e_zone.c 22 Nov 2007 20:09:04 -0000 1.126 @@ -17,7 +17,6 @@ static int _e_zone_cb_timer(void *data); static int _e_zone_cb_desk_show(void *data, int type, void *event); static void _e_zone_update_flip(E_Zone *zone); -static void _e_zone_event_move_resize_free(void *data, void *event); EAPI int E_EVENT_ZONE_DESK_COUNT_SET = 0; EAPI int E_EVENT_POINTER_WARP = 0; @@ -170,7 +169,7 @@ ev = E_NEW(E_Event_Zone_Move_Resize, 1); ev->zone = zone; - ecore_event_add(E_EVENT_ZONE_MOVE_RESIZE, ev, _e_zone_event_move_resize_free, NULL); + ecore_event_add(E_EVENT_ZONE_MOVE_RESIZE, ev, NULL, NULL); ecore_x_window_move_resize(zone->edge.left, zone->x, zone->y, 1, zone->h); ecore_x_window_move_resize(zone->edge.right, zone->x + zone->w - 1, zone->y, 1, zone->h); @@ -195,7 +194,7 @@ ev = E_NEW(E_Event_Zone_Move_Resize, 1); ev->zone = zone; - ecore_event_add(E_EVENT_ZONE_MOVE_RESIZE, ev, _e_zone_event_move_resize_free, NULL); + ecore_event_add(E_EVENT_ZONE_MOVE_RESIZE, ev, NULL, NULL); ecore_x_window_move_resize(zone->edge.left, zone->x, zone->y, 1, zone->h); ecore_x_window_move_resize(zone->edge.right, zone->x + zone->w - 1, zone->y, 1, zone->h); @@ -228,7 +227,7 @@ ev = E_NEW(E_Event_Zone_Move_Resize, 1); ev->zone = zone; - ecore_event_add(E_EVENT_ZONE_MOVE_RESIZE, ev, _e_zone_event_move_resize_free, NULL); + ecore_event_add(E_EVENT_ZONE_MOVE_RESIZE, ev, NULL, NULL); ecore_x_window_move_resize(zone->edge.left, zone->x, zone->y, 1, zone->h); ecore_x_window_move_resize(zone->edge.right, zone->x + zone->w - 1, zone->y, 1, zone->h); @@ -1007,10 +1006,4 @@ if (one_row && E_ZONE_FLIP_DOWN(zone)) zone->flip.bottom = 1; } -} - -static void -_e_zone_event_move_resize_free(void *data, void *event) -{ - E_FREE(event); } ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs