From 3be02075eccb80245a29c987717993d2f7e0e81b Mon Sep 17 00:00:00 2001 From: Mikhail Pozdnyakov Date: Sun, 1 Mar 2020 21:27:24 +0200 Subject: [PATCH] [default] Fix possible crash at RunLoop::wake() --- platform/default/src/mbgl/util/run_loop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/default/src/mbgl/util/run_loop.cpp b/platform/default/src/mbgl/util/run_loop.cpp index 868ee72114f..6ea999e80b6 100644 --- a/platform/default/src/mbgl/util/run_loop.cpp +++ b/platform/default/src/mbgl/util/run_loop.cpp @@ -130,7 +130,7 @@ LOOP_HANDLE RunLoop::getLoopHandle() { } void RunLoop::wake() { - impl->async->send(); + if (impl->async) impl->async->send(); } void RunLoop::run() {