ecore: fix memory leak issues.
authorSrivardhan Hebbar <sri.hebbar@samsung.com>
Thu, 25 Dec 2014 20:34:45 +0000 (21:34 +0100)
committerCedric BAIL <cedric@osg.samsung.com>
Thu, 25 Dec 2014 20:34:50 +0000 (21:34 +0100)
commitb411be4be3abe2c5eecef59d36ce64f0efb89b00
treeb1b27fa6d6ae665174a1b6d4ae230408f8e4dc82
parentd7c1987d0f005548b28ad632660618a6699cf58a
ecore: fix memory leak issues.

Summary:
eina_inarray_new returns NULL if malloc fails. This check was not performed. So have added the check for the error case and returning NULL if any of it fails.

@fix

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>
Reviewers: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1807

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/lib/ecore_x/xcb/ecore_xcb_selection.c
src/lib/ecore_x/xlib/ecore_x_selection.c