summaryrefslogtreecommitdiff
path: root/src/mbgl/style/style.cpp
diff options
context:
space:
mode:
authorIvo van Dongen <info@ivovandongen.nl>2017-03-06 17:19:38 -0800
committerIvo van Dongen <ivovandongen@users.noreply.github.com>2017-03-06 18:04:22 -0800
commit0da6d8a646746831819525fd37cff3ed0af9589b (patch)
tree6b2699f7dd1c1871d36be26e253f44e85e97851b /src/mbgl/style/style.cpp
parent84f69bfcc0e276a2dc3fd515a2425069dd47f442 (diff)
downloadqtlocation-mapboxgl-0da6d8a646746831819525fd37cff3ed0af9589b.tar.gz
[core] clear source when removed from style
Diffstat (limited to 'src/mbgl/style/style.cpp')
-rw-r--r--src/mbgl/style/style.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mbgl/style/style.cpp b/src/mbgl/style/style.cpp
index aacf811f4d..5b45ca27ef 100644
--- a/src/mbgl/style/style.cpp
+++ b/src/mbgl/style/style.cpp
@@ -166,6 +166,7 @@ std::unique_ptr<Source> Style::removeSource(const std::string& id) {
sources.erase(it);
updateBatch.sourceIDs.erase(id);
+ source->baseImpl->detach();
return source;
}