elementary/gesture_layer - [E-devel] [Patch] elm_gesture_layer patc
authorhermet <hermet@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 29 Nov 2011 09:20:31 +0000 (09:20 +0000)
committerhermet <hermet@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 29 Nov 2011 09:20:31 +0000 (09:20 +0000)
commit8f06ddbbd734c945b2ca6db7c44148b1ac24b664
treeafc9cd39790b3bd6f895826ced0cc6c54695a338
parent261e8ac54fae9446ab0fe66201ee9212953bf2b8
elementary/gesture_layer - [E-devel] [Patch] elm_gesture_layer patc

Hi,

On behalf of Rajeev Ranjan, I am submitting the elm_gesture_layer patch.

Change Log:
a. Variable was used after freeing in function _remove_touched_device, now storing return value of eina_list_remove and then freeing pointer.
b. gesture pointer was dereferenced before checking it against NULL in function _rotate_test. Now dereferencing happens after NULL check.
c. Added NULL check for pointer before using it in function _event_process which is dereferenced in function _add_touched_device.
d. Memory leak fix in function elm_gesture_layer_add. Now using ELM_WIDGET_STANDARD_SETUP which takes care of NULL checks and freeing memory in case of failure.

Please review it.
I'd appreciate any comments on this.

Thank you,

Signed-Off-By: Rajeev Ranjan <rajeev.r@samsung.com>
Signed-Off-By: Prince Kumar Dubey <prince.dubey@samsung.com>
Signed-Off-By: ChunEon Park <hermet@hermet.pe.kr>
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@65680 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
src/lib/elm_gesture_layer.c