Ector: Prevent access to NULL

Summary: ector thread can called *data(task) after deleting task object.

Test Plan: N/A

Reviewers: Hermet, kimcinoo, smohanty

Reviewed By: Hermet

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D10804
This commit is contained in:
junsu choi 2019-12-05 20:25:25 +09:00 committed by Hermet Park
parent a5837cb4ed
commit c1f3ad86df
1 changed files with 2 additions and 2 deletions

View File

@ -570,8 +570,8 @@ static void
_done_rle(void *data)
{
Ector_Software_Shape_Task *task = data;
task->pd->done = EINA_TRUE;
if (task && task->pd)
task->pd->done = EINA_TRUE;
}
static void