Skip to content

Commit 8e09988

Browse files
Fix memory corruption issue (flutter-tizen#2)
Rebased #1. Co-authored-by: xiaowei guan <[email protected]>
1 parent 4437aa5 commit 8e09988

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

shell/platform/tizen/tizen_vsync_waiter.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ void TizenVsyncWaiter::TdmClientVblankCallback(
109109
}
110110

111111
bool TizenVsyncWaiter::AsyncWaitForVsync() {
112+
if (nullptr == flutter_engine_) {
113+
LoggerD("flutter_engine_ is null");
114+
return false;
115+
}
112116
if (vblank_ecore_pipe_) {
113117
int event_type = VBLANK_LOOP_REQUEST;
114118
ecore_pipe_write(vblank_ecore_pipe_, &event_type, sizeof(event_type));

0 commit comments

Comments
 (0)