[Tizen] Fix a texture manager crash 58/251458/1 accepted/tizen/6.0/unified/20210114.121919 submit/tizen_6.0/20210114.052723
authorHeeyong Song <heeyong.song@samsung.com>
Thu, 22 Oct 2020 07:52:59 +0000 (16:52 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Thu, 14 Jan 2021 04:42:21 +0000 (13:42 +0900)
commit7ef1a5ec75af08827cb02a1e2f0bbedd5230f898
treecc9a0fbb41710902de341f3ba35049d5306f0946
parentbecc5ba31ee6920e1a9c81b26c9cdd3b091b5dff
[Tizen] Fix a texture manager crash

In case of ReleasePolicy::NEVER,
Load an image in the UploadComplete callback, then it is inserted to the mLoadQueue
Delete the image visual before the queue is processed.
Then mObserver of LoadQueueElement has an invalid reference.

So reset the mObserver when the visual is deleted

Change-Id: Ie90e6374d419f614a1c08579b7591a7e21b43197
automated-tests/src/dali-toolkit/utc-Dali-ImageView.cpp
dali-toolkit/internal/visuals/texture-manager-impl.cpp