summaryrefslogtreecommitdiff
path: root/test/style/resource_loading.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/style/resource_loading.cpp')
-rw-r--r--test/style/resource_loading.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/style/resource_loading.cpp b/test/style/resource_loading.cpp
index e0c4590c7c..c6f1c1dfae 100644
--- a/test/style/resource_loading.cpp
+++ b/test/style/resource_loading.cpp
@@ -38,6 +38,10 @@ public:
}
~MockMapContext() {
+ cleanup();
+ }
+
+ void cleanup() {
style_.reset();
}
@@ -118,6 +122,7 @@ void runTestCase(MockFileSource::Type type,
// Needed because it will make the Map thread
// join and cease logging after this point.
+ context->invoke(&MockMapContext::cleanup);
context.reset();
uint32_t match = 0;