projects
/
platform
/
upstream
/
enlightenment.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
104a5c7
)
e_policy_wl: prevent double free of tzsh_reg->destroy_listener.link
32/228732/1
accepted/tizen/unified/20200326.215026
submit/tizen/20200325.071706
author
Junseok, Kim
<juns.kim@samsung.com>
Wed, 25 Mar 2020 06:08:35 +0000
(15:08 +0900)
committer
JunSeok Kim
<juns.kim@samsung.com>
Wed, 25 Mar 2020 06:14:29 +0000
(06:14 +0000)
Change-Id: If3a57713a5128553d8c09a3e8b6fa693be0ec576
src/bin/e_policy_wl.c
patch
|
blob
|
history
diff --git
a/src/bin/e_policy_wl.c
b/src/bin/e_policy_wl.c
index
1811c5c
..
6b4e181
100644
(file)
--- a/
src/bin/e_policy_wl.c
+++ b/
src/bin/e_policy_wl.c
@@
-4402,7
+4402,11
@@
_tzsh_reg_cb_destroy(struct wl_resource *res_tzsh_reg)
tzsh_reg = wl_resource_get_user_data(res_tzsh_reg);
EINA_SAFETY_ON_NULL_RETURN(tzsh_reg);
- wl_list_remove(&tzsh_reg->destroy_listener.link);
+ if (tzsh_reg->destroy_listener.notify)
+ {
+ wl_list_remove(&tzsh_reg->destroy_listener.link);
+ tzsh_reg->destroy_listener.notify = NULL;
+ }
eina_tiler_free(tzsh_reg->tiler);
E_FREE(tzsh_reg);