seoz pushed a commit to branch master.
commit f27b4973549f949898ebb1ff2fbd1b9ec6bc77fd
Author: Daniel Juyung Seo <[email protected]>
Date: Fri Jul 5 17:35:29 2013 +0900
elm_cnp.c: fixed use after free spotted by coverity CID 1039969.
---
src/lib/elm_cnp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/elm_cnp.c b/src/lib/elm_cnp.c
index 604afb9..fe6fb33 100644
--- a/src/lib/elm_cnp.c
+++ b/src/lib/elm_cnp.c
@@ -3837,8 +3837,8 @@ elm_drag_item_container_del_internal(Evas_Object *obj,
Eina_Bool full)
evas_object_event_callback_del_full
(obj, EVAS_CALLBACK_MOUSE_DOWN, _cont_obj_mouse_down, st);
- free(st);
cont_drag_tg = eina_list_remove(cont_drag_tg, st);
+ free(st);
}
return EINA_TRUE;
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev