edc_parser: fix spinlock infinte loop issue.
nullout pointer properly to not access an invalid memory thread.
This commit is contained in:
parent
7b23d7964a
commit
8fec9ff3c9
|
@ -1902,8 +1902,9 @@ parser_bracket_cancel(parser_data *pd)
|
||||||
{
|
{
|
||||||
if (pd->btd)
|
if (pd->btd)
|
||||||
{
|
{
|
||||||
pd->btd->pd = NULL;
|
|
||||||
ecore_thread_cancel(pd->btd->thread);
|
ecore_thread_cancel(pd->btd->thread);
|
||||||
|
pd->btd->pd = NULL;
|
||||||
|
pd->btd = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue