diff options
author | Jeroen Bakker <jeroen@blender.org> | 2021-11-08 13:37:42 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-11-08 13:37:42 +0300 |
commit | 09cef0fc00dc4b699b8bae5d8b8f73d613ccdf9a (patch) | |
tree | 2723849e8062e21670972689399af36301a849cf /source/blender | |
parent | ee4966d14670c0a63adc000f13fb47750c5c9ae6 (diff) |
Fix ASAN issue in image editor.
Adding virtual constructors to base classes.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/draw/engines/image/image_private.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/draw/engines/image/image_private.hh b/source/blender/draw/engines/image/image_private.hh index be6f5b78806..2b3ae7dc3bd 100644 --- a/source/blender/draw/engines/image/image_private.hh +++ b/source/blender/draw/engines/image/image_private.hh @@ -94,6 +94,8 @@ struct ShaderParameters { */ class AbstractSpaceAccessor { public: + virtual ~AbstractSpaceAccessor() = default; + /** * Return the active image of the space. * @@ -175,6 +177,7 @@ class AbstractSpaceAccessor { **/ class AbstractDrawingMode { public: + virtual ~AbstractDrawingMode() = default; virtual void cache_init(IMAGE_Data *vedata) const = 0; virtual void cache_image(AbstractSpaceAccessor *space, IMAGE_Data *vedata, |