From 69b3400007926aae20afff8706c718cf02ecd1d2 Mon Sep 17 00:00:00 2001 From: "Junseok, Kim" Date: Wed, 25 Mar 2020 15:08:35 +0900 Subject: [PATCH] e_policy_wl: prevent double free of tzsh_reg->destroy_listener.link Change-Id: If3a57713a5128553d8c09a3e8b6fa693be0ec576 --- src/bin/e_policy_wl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bin/e_policy_wl.c b/src/bin/e_policy_wl.c index 1811c5c8b4..6b4e181f13 100644 --- 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); -- 2.34.1