Skip to content
Commit 7e9130c1 authored by Yifan Zhu's avatar Yifan Zhu
Browse files

Only try unset surface if native window is alive

Sometimes WindowShadow::internalDestroy is called when the window is being destroyed.
In that case, recreating the window in surfaceForWindow(...) causes segfault.
Only call surfaceForWindow and unset the surface if the native window is alive.

CCBUG: 478990
parent cd168115
Pipeline #577009 passed with stage
in 3 minutes and 10 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment