mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-19 17:09:06 +08:00
slic3r: address sanitizer cleanup in GLVolume
Now that GLVolume has a subclass, GLWipeTowerVolume, it needs a virtual destructor, too. See: https://stackoverflow.com/questions/41552966/getting-new-delete-type-mismatch-from-asan
This commit is contained in:
parent
3b21f7f33f
commit
21c301ebce
@ -286,6 +286,7 @@ public:
|
||||
|
||||
GLVolume(float r = 1.f, float g = 1.f, float b = 1.f, float a = 1.f);
|
||||
GLVolume(const std::array<float, 4>& rgba) : GLVolume(rgba[0], rgba[1], rgba[2], rgba[3]) {}
|
||||
virtual ~GLVolume() = default;
|
||||
|
||||
// BBS
|
||||
protected:
|
||||
|
Loading…
x
Reference in New Issue
Block a user