summaryrefslogtreecommitdiff
path: root/src/mbgl/style
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2017-05-18 12:39:03 +0200
committerKonstantin Käfer <mail@kkaefer.com>2017-05-18 16:57:12 +0200
commit5d7e54a815715458ee021ba4c4f5f3135876919b (patch)
tree3d0cb2bec561a5793efac10fa76dbdee33176e99 /src/mbgl/style
parent77b24bc0d3ddfda494cf1a7ce4090ff3a79324e4 (diff)
downloadqtlocation-mapboxgl-5d7e54a815715458ee021ba4c4f5f3135876919b.tar.gz
[core] Make destructor virtual to avoid object splicing during destruction
Diffstat (limited to 'src/mbgl/style')
-rw-r--r--src/mbgl/style/sources/geojson_source_impl.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mbgl/style/sources/geojson_source_impl.hpp b/src/mbgl/style/sources/geojson_source_impl.hpp
index 192ef653dc..a524bab9f2 100644
--- a/src/mbgl/style/sources/geojson_source_impl.hpp
+++ b/src/mbgl/style/sources/geojson_source_impl.hpp
@@ -13,6 +13,7 @@ namespace style {
class GeoJSONData {
public:
+ virtual ~GeoJSONData() = default;
virtual mapbox::geometry::feature_collection<int16_t> getTile(const CanonicalTileID&) = 0;
};