e_policy_visibility: modify code to clone the wait_buf_attach_grab_list 21/268621/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Tue, 28 Dec 2021 02:50:12 +0000 (11:50 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Tue, 28 Dec 2021 06:58:28 +0000 (15:58 +0900)
commit260a8af1a69da50709dd75b23ece6da6ff436488
treec10367a8ba38b49fc1a6323cc2acbe97553fbe89
parent53a6894c170121404bb7ee49e1e55ee7723aaf73
e_policy_visibility: modify code to clone the wait_buf_attach_grab_list

In e_policy_visibility_client_uniconify_by_visibility_job_cancel, we freed wait_buf_attach_grab_list,
and then we tried to call _e_vis_grab_release. So, no grab was freed.
To fix this, we add code to clone the wait_buf_attach_grab_list first.
Then, we free the wait_buf_attach_grab_list, and call the _e_vis_grab_release using cloned list.

Change-Id: I70636d159b0b6558b967b08ce4212879403760bb
src/bin/e_policy_visibility.c