Disconnect relationship with VisualUrl and VisualFactory 55/262455/11
authorEunki Hong <eunkiki.hong@samsung.com>
Wed, 11 Aug 2021 06:42:00 +0000 (23:42 -0700)
committerEunki, Hong <eunkiki.hong@samsung.com>
Wed, 18 Aug 2021 09:04:49 +0000 (18:04 +0900)
commite15a4820108d180331611d918b383771f16c1c9e
treef9fde3d1cff52128e04c7005dfa4f3918466571e
parenta88db82a75443d573185aea2938f1f0be141ca64
Disconnect relationship with VisualUrl and VisualFactory

When VisualFactory destory,
VisualFactoryCache also destroy, and TextureManager also destory.
At this time, mTextureInfoContainer clear, and TextureInfo's VisualUrl destroy.

When VisualUrl destuctor called, we call VisaulFactory::Get() and try to get TextureManager.
But We are now on VisualFactory's destroy called...

This is why image-view-encoded-image-buffer.example make Segfault.

This patch move previous VisualUrl's job
to TextureManager and ImageVisual.

Change-Id: Iefc6fe7f8bda6cee08fdaafded4979935cbc87a2
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
dali-toolkit/internal/visuals/image/image-visual.cpp
dali-toolkit/internal/visuals/texture-manager-impl.cpp
dali-toolkit/internal/visuals/visual-url.cpp