Fix a texture manager crash 63/246063/7
authorHeeyong Song <heeyong.song@samsung.com>
Thu, 22 Oct 2020 07:52:59 +0000 (16:52 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Tue, 10 Nov 2020 02:32:30 +0000 (02:32 +0000)
commitd1bd21955128a99337f9a377d524bf6ef1a1b8e4
treec31f07acfafa7ce4dcf28213bc96cc51f7c61e24
parentc13b36274abc61425338346b24d456c7b18f5bd7
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