summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-12-17 14:39:52 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-12-17 15:15:55 -0800
commitfd248c18947267142eabef71ec7ef9d9b029494f (patch)
treee52e9586750d7f5f9d85d8d218bf7eaba7a04847 /src
parent110f1ec796ab46e4f16bcf9673f0aa89ae153aeb (diff)
downloadqtlocation-mapboxgl-fd248c18947267142eabef71ec7ef9d9b029494f.tar.gz
[core] Don't crash when destroying a copied CustomLayer
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/layer/custom_layer.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mbgl/layer/custom_layer.hpp b/src/mbgl/layer/custom_layer.hpp
index ccc1a4b485..315d158802 100644
--- a/src/mbgl/layer/custom_layer.hpp
+++ b/src/mbgl/layer/custom_layer.hpp
@@ -32,10 +32,10 @@ private:
std::unique_ptr<Bucket> createBucket(StyleBucketParameters&) const final;
- CustomLayerInitializeFunction initializeFn;
- CustomLayerRenderFunction renderFn;
- CustomLayerDeinitializeFunction deinitializeFn;
- void* context;
+ CustomLayerInitializeFunction initializeFn = nullptr;
+ CustomLayerRenderFunction renderFn = nullptr;
+ CustomLayerDeinitializeFunction deinitializeFn = nullptr;
+ void* context = nullptr;
};
} // namespace mbgl