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:
Joshua Wise 2023-01-24 03:40:05 -05:00 committed by Lane.Wei
parent 040af5fa98
commit 0078c2a22e

View file

@ -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: