[Tizen] Erase observer at TexturManager remove 97/279697/2
authorEunki, Hong <eunkiki.hong@samsung.com>
Tue, 16 Aug 2022 04:28:23 +0000 (13:28 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Tue, 16 Aug 2022 09:44:31 +0000 (18:44 +0900)
commitca5adfbceeb163ac3a3957c0717f342b7526b03a
tree0bb9a87847bf7123d9f3a62735689ab311602151
parentdd1c64dc728a03697622786245fad62acc843a7d
[Tizen] Erase observer at TexturManager remove

First, load one image from imageView.
And while the first loaded image is removed from the scene, there is a problem if another image view loads with the same image URL.
This is because there are cases where a callback is received from an invalid imageView by a previous observer.
To prevent this problem, change the observer to also delete the texture when deleting it.

Change-Id: Ied8235c35ff9772b36f55de3c3b5b21fbc4bce5c
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
automated-tests/src/dali-toolkit/utc-Dali-ImageView.cpp
dali-toolkit/internal/texture-manager/texture-manager-impl.cpp