Enlightenment CVS committal Author : englebass Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_dnd.c Log Message: No need to alloc =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_dnd.c,v retrieving revision 1.69 retrieving revision 1.70 diff -u -3 -r1.69 -r1.70 --- e_dnd.c 13 Jun 2008 09:14:20 -0000 1.69 +++ e_dnd.c 13 Jun 2008 10:21:43 -0000 1.70 @@ -1102,7 +1102,7 @@ _e_dnd_cb_event_dnd_leave(void *data, int type, void *event) { Ecore_X_Event_Xdnd_Leave *ev; - E_Event_Dnd_Leave *leave_ev; + E_Event_Dnd_Leave leave_ev; const char *id; Evas_List *l; @@ -1112,10 +1112,8 @@ if (!evas_hash_find(_drop_win_hash, id)) return 1; printf("Xdnd leave\n"); - leave_ev = E_NEW(E_Event_Dnd_Leave, 1); - /* FIXME: We don't need x and y in leave */ - leave_ev->x = 0; - leave_ev->y = 0; + leave_ev.x = 0; + leave_ev.y = 0; if (_xdnd) { @@ -1131,7 +1129,7 @@ if (h->entered) { if (h->cb.leave) - h->cb.leave(h->cb.data, h->active_type, leave_ev); + h->cb.leave(h->cb.data, h->active_type, &leave_ev); h->entered = 0; } } @@ -1140,7 +1138,6 @@ free(_xdnd); _xdnd = NULL; } - free(leave_ev); return 1; } ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs