edc_parser: fix spinlock infinte loop issue.

nullout pointer properly to not access an invalid memory thread.
This commit is contained in:
Hermet Park 2016-08-16 11:32:34 +09:00
parent 7b23d7964a
commit 8fec9ff3c9
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}
}