mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 23:46:24 -06: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
040af5fa98
commit
0078c2a22e
1 changed files with 1 additions and 0 deletions
|
@ -287,6 +287,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…
Add table
Add a link
Reference in a new issue