common taskscheduler: fix a potential crash issue. 53/292353/1
authorHermet Park <hermetpark@gmail.com>
Tue, 25 Apr 2023 07:27:41 +0000 (16:27 +0900)
committerPatryk Kaczmarek <patryk.k@partner.samsung.com>
Thu, 4 May 2023 09:25:30 +0000 (11:25 +0200)
commit0642412ebc5c4a72b01b47eff707d544915c965b
treeee387ca943bae262d8f026a36090cc44e0a4de3b
parent3ff980f0db1861f655b9737bc71d39eed337c285
common taskscheduler: fix a potential crash issue.

Guarantee the tasks are not deleted until the taskscheduler finished them.

@Issue: https://github.com/thorvg/thorvg/issues/1370

Change-Id: I9304539f5960a05405ac3993f39894d46a4ff57b
src/lib/tvgTaskScheduler.cpp
src/lib/tvgTaskScheduler.h