summaryrefslogtreecommitdiff
path: root/src/mbgl
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-19 12:12:47 +0200
commitf0b0167640fa6cbd852ec1bed237277ee7c5f06d (patch)
treed0e14ea21ff72c8c5655aa8fb119218f1ce22bc7 /src/mbgl
parenteb83c7250933b7d3705a3508976c69571a9b9d4c (diff)
downloadqtlocation-mapboxgl-f0b0167640fa6cbd852ec1bed237277ee7c5f06d.tar.gz
[core] Make destructor virtual to avoid object splicing during destruction
Diffstat (limited to 'src/mbgl')
-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 e8b881d05e..dece1269f8 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;
};