From 121326f5150ef032bbde14fbc01a7ab8bfa3ce5d Mon Sep 17 00:00:00 2001 From: Mikhail Pozdnyakov Date: Sun, 1 Mar 2020 21:27:24 +0200 Subject: [PATCH 1/2] [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() { From 3cbcab843e9fd0403acf652c03cb54cb411696bc Mon Sep 17 00:00:00 2001 From: Mikhail Pozdnyakov Date: Sun, 1 Mar 2020 21:41:07 +0200 Subject: [PATCH 2/2] Add change log entry --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c8fe97487a3..2ae4d91137a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ Fixes possible crashes when using styles with line patterns. +- [default] Fix possible crash at RunLoop::wake() ([#16255](https://github.com/mapbox/mapbox-gl-native/pull/16255)) + ## maps-v1.3.0 (2020.02-relvanillashake) ### 🐞 Bug fixes