hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=8fec9ff3c9b83591e71ebe540fad749e7c1c1056

commit 8fec9ff3c9b83591e71ebe540fad749e7c1c1056
Author: Hermet Park <[email protected]>
Date:   Tue Aug 16 11:32:34 2016 +0900

    edc_parser: fix spinlock infinte loop issue.
    
    nullout pointer properly to not access an invalid memory thread.
---
 src/lib/edc_parser.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/edc_parser.c b/src/lib/edc_parser.c
index 4e9dd36..6fa89bf 100644
--- a/src/lib/edc_parser.c
+++ b/src/lib/edc_parser.c
@@ -1902,8 +1902,9 @@ parser_bracket_cancel(parser_data *pd)
 {
    if (pd->btd)
      {
-        pd->btd->pd = NULL;
         ecore_thread_cancel(pd->btd->thread);
+        pd->btd->pd = NULL;
+        pd->btd = NULL;
      }
 }
 

-- 


Reply via email to