From 4583b679801c49e969c668693fb5acbdc72812fb Mon Sep 17 00:00:00 2001 From: xiaowei guan Date: Thu, 26 Nov 2020 04:03:40 +0800 Subject: [PATCH] Fix memory corruption issue Rebased #1. --- shell/platform/tizen/tizen_vsync_waiter.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shell/platform/tizen/tizen_vsync_waiter.cc b/shell/platform/tizen/tizen_vsync_waiter.cc index 01bbda4c341e6..e2bfd74d82772 100644 --- a/shell/platform/tizen/tizen_vsync_waiter.cc +++ b/shell/platform/tizen/tizen_vsync_waiter.cc @@ -109,6 +109,10 @@ void TizenVsyncWaiter::TdmClientVblankCallback( } bool TizenVsyncWaiter::AsyncWaitForVsync() { + if (nullptr == flutter_engine_) { + LoggerD("flutter_engine_ is null"); + return false; + } if (vblank_ecore_pipe_) { int event_type = VBLANK_LOOP_REQUEST; ecore_pipe_write(vblank_ecore_pipe_, &event_type, sizeof(event_type));