From 1fe545aee4c28f3a74dc365ca69b4725cd8daa77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Thu, 11 Dec 2014 18:32:25 +0100 Subject: [PATCH] fix crashes when running in non-continuous mode --- src/mbgl/map/map.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mbgl/map/map.cpp b/src/mbgl/map/map.cpp index 7f6cbd3f4..0af7d4851 100644 --- a/src/mbgl/map/map.cpp +++ b/src/mbgl/map/map.cpp @@ -91,6 +91,7 @@ Map::Map(View& view_, FileSource& fileSource_) view(view_), #ifndef NDEBUG mainThread(std::this_thread::get_id()), + mapThread(mainThread), #endif transform(view_), fileSource(fileSource_), @@ -119,6 +120,7 @@ Map::~Map() { style.reset(); texturePool.reset(); workers.reset(); + fileSource.clearLoop(); uv_run(**loop, UV_RUN_DEFAULT); }