Skip to content

Commit

Permalink
Fix coredump issue during exit app
Browse files Browse the repository at this point in the history
Need check whether vsync_waiter_ is a null pointer, because during
stop engine process, may receive a request for vsync.
  • Loading branch information
xiaowei-guan committed Aug 22, 2023
1 parent bce2f14 commit aebd688
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flutter/shell/platform/tizen/flutter_tizen_engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ bool FlutterTizenEngine::RunEngine() {
vsync_waiter_ = std::make_unique<TizenVsyncWaiter>(this);
args.vsync_callback = [](void* user_data, intptr_t baton) -> void {
auto* engine = static_cast<FlutterTizenEngine*>(user_data);
engine->vsync_waiter_->AsyncWaitForVsync(baton);
if (engine->vsync_waiter_) {
engine->vsync_waiter_->AsyncWaitForVsync(baton);
}
};
}
#endif
Expand Down

0 comments on commit aebd688

Please sign in to comment.