diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2020-03-01 21:27:24 +0200 |
---|---|---|
committer | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2020-03-02 11:28:58 +0200 |
commit | 6afed438519c16064e3d934d85f851858a3a99d9 (patch) | |
tree | 056283e60a28bbf856cfae0c648933da50fe4014 | |
parent | ca8435ca75deeac902d7c8913c475cf679b10012 (diff) | |
download | qtlocation-mapboxgl-6afed438519c16064e3d934d85f851858a3a99d9.tar.gz |
[default] Fix possible crash at RunLoop::wake()
-rw-r--r-- | platform/default/src/mbgl/util/run_loop.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/default/src/mbgl/util/run_loop.cpp b/platform/default/src/mbgl/util/run_loop.cpp index 868ee72114..6ea999e80b 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() { |