projects
/
platform
/
core
/
uifw
/
dali-adaptor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix the crash when it tries to destroy the wrong surface
[platform/core/uifw/dali-adaptor.git]
/
dali
/
internal
/
adaptor
/
common
/
adaptor-impl.cpp
diff --git
a/dali/internal/adaptor/common/adaptor-impl.cpp
b/dali/internal/adaptor/common/adaptor-impl.cpp
index
c39903f
..
d046790
100755
(executable)
--- a/
dali/internal/adaptor/common/adaptor-impl.cpp
+++ b/
dali/internal/adaptor/common/adaptor-impl.cpp
@@
-515,6
+515,7
@@
void Adaptor::ReplaceSurface( Any nativeWindow, RenderSurface& newSurface )
// Must delete the old Window only after the render thread has completed the replace
oldDefaultWindow.surface->DestroySurface();
+ oldDefaultWindow.surface = nullptr;
}
RenderSurface& Adaptor::GetSurface() const