summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHosang Kim <hosang12.kim@samsung.com>2020-03-17 09:52:59 -0400
committerMike Blumenkrantz <zmike@samsung.com>2020-03-17 09:52:59 -0400
commit91ab84286a87521fea9f7eba587e0a095c8dcc5d (patch)
tree771f6a77c9033858f2392d270ca9b4c8c3ee2b72
parent3b28c4770b7d280e65a4da01c1ea732e8f577bef (diff)
edje_message_queue: decrease number of messages when message is removed.
Summary: Sometimes edje_message_del is called while processing edje message. It makes double free corruption. Reviewers: raster, bu5hm4n, zmike Reviewed By: zmike Subscribers: bu5hm4n, zmike, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11393
-rw-r--r--src/lib/edje/edje_message_queue.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/edje/edje_message_queue.c b/src/lib/edje/edje_message_queue.c
index 020f89b46d..d92601073b 100644
--- a/src/lib/edje/edje_message_queue.c
+++ b/src/lib/edje/edje_message_queue.c
@@ -223,6 +223,7 @@ again:
223 if (!lookup_ed) continue; 223 if (!lookup_ed) continue;
224 tmp_msgq = eina_inlist_remove(tmp_msgq, &(em->inlist_main)); 224 tmp_msgq = eina_inlist_remove(tmp_msgq, &(em->inlist_main));
225 lookup_ed->messages = eina_inlist_remove(lookup_ed->messages, &(em->inlist_edje)); 225 lookup_ed->messages = eina_inlist_remove(lookup_ed->messages, &(em->inlist_edje));
226 lookup_ed->message.num--;
226 if (!lookup_ed->delete_me) 227 if (!lookup_ed->delete_me)
227 { 228 {
228 lookup_ed->processing_messages++; 229 lookup_ed->processing_messages++;