Remove surfaces linked to the current resource when unbinding 78/137678/1
authorJi-hoon Lee <dalton.lee@samsung.com>
Wed, 5 Jul 2017 11:01:40 +0000 (20:01 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Fri, 7 Jul 2017 05:14:11 +0000 (14:14 +0900)
commitd92ca6c085107f85db636e2c7b668c47394842da
treebc876c0e1f502d292f6bbd5b434adb4dc75b0ea0
parenta77b8eb663e6510c49a41a09687e2595fdea9d7d
Remove surfaces linked to the current resource when unbinding

Since the current implementation of unbind() frees the
entire surfaces list when unbinding, if the unbind is
executed after a new bind/get_surface request, this would
erase surfaces that should not be deleted.
Thus, store the resource pointer when acquiring surfaces,
and when unbinding remove the surfaces that are linked to
the currently unbinding resource to ensure the surfaces
that are currently in use, are not being lost.

Change-Id: I3e43ca7f991e9d09f78b11fc5c3e9be3e196ef22
src/e_mod_input_panel.c