diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2015-12-17 14:39:52 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2015-12-17 15:15:55 -0800 |
commit | fd248c18947267142eabef71ec7ef9d9b029494f (patch) | |
tree | e52e9586750d7f5f9d85d8d218bf7eaba7a04847 /src | |
parent | 110f1ec796ab46e4f16bcf9673f0aa89ae153aeb (diff) | |
download | qtlocation-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.hpp | 8 |
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 |