evas/event - fixed memory leak in multi move

SVN revision: 78528
This commit is contained in:
ChunEon Park 2012-10-26 12:23:35 +00:00
parent aefbd16dea
commit 7f30408237
2 changed files with 10 additions and 1 deletions

View File

@ -1131,3 +1131,11 @@
2012-10-25 ChunEon Park (Hermet)
* Added Evas_Coord_Size, Evas_Coord_Precision_Size type.
2012-10-26 ChunEon Park (Hermet)
* Added Evas_Coord_Size, Evas_Coord_Precision_Size type.
2012-10-27 ChunEon Park (Hermet)
* Fixed event multi move memory leak.

View File

@ -2009,7 +2009,7 @@ _canvas_event_feed_multi_move(Eo *eo_e, void *_pd, va_list *list)
ev.event_flags = e->default_event_flags;
ev.dev = _evas_device_top_get(eo_e);
if (ev.dev) _evas_device_ref(ev.dev);
copy = evas_event_list_copy(e->pointer.object.in);
EINA_LIST_FOREACH(copy, l, eo_obj)
{
@ -2037,6 +2037,7 @@ _canvas_event_feed_multi_move(Eo *eo_e, void *_pd, va_list *list)
}
if (e->delete_me || e->is_frozen) break;
}
eina_list_free(copy);
_evas_post_event_callback_call(eo_e, e);
if (ev.dev) _evas_device_unref(ev.dev);
}