ecore_wl2: dnd: fix leak of event resource when not used
authorStefan Schmidt <stefan@osg.samsung.com>
Tue, 19 Jul 2016 12:52:28 +0000 (14:52 +0200)
committerStefan Schmidt <stefan@osg.samsung.com>
Tue, 19 Jul 2016 12:52:28 +0000 (14:52 +0200)
commit7d443f30e2d99e41ff9efd7f7ce97e5d12f8fcb2
tree9264983d30d70042624311062c354de69da1ff2c
parent1c832a1b12066adc3a22d7e49c1ff25b25d7616d
ecore_wl2: dnd: fix leak of event resource when not used

In the else branch the allocated event is never used. Make sure we free the
resource before returning.

CID: 1357753
src/lib/ecore_wl2/ecore_wl2_dnd.c