Fix crash issue when surface deleted before initialized 58/315058/1
authorEunki, Hong <eunkiki.hong@samsung.com>
Wed, 24 Jul 2024 06:55:37 +0000 (15:55 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Wed, 24 Jul 2024 07:00:09 +0000 (16:00 +0900)
commit4aeca604344d5b34ff97b32d7d54553f7cd26954
treeb423d98569fc1b3ce1c14f2818c58ce16e04421a
parent2460b83f7a818cc09a8e84c1ec4cdb407cb5d226
Fix crash issue when surface deleted before initialized

It is possible that delete WindowRenderSurface before call
WindowRenderSurface::InitializeGraphics().

If then, mGraphics is nullptr.

To avoid this case, let we check mGraphics validation before call
mGraphics->DeleteSurface()

Change-Id: Ie58d40754b6d935dfcbf2366f05c819666d5f028
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali/internal/window-system/common/window-render-surface.cpp