Skip to content

Commit 6ba00a1

Browse files
tmaier-scchristian-rauch
authored andcommitted
Add a virtual destructor for ColourProvider
1 parent c1c0884 commit 6ba00a1

File tree

1 file changed

+3
-0
lines changed
  • components/pango_opengl/include/pangolin/gl

1 file changed

+3
-0
lines changed

components/pango_opengl/include/pangolin/gl/colour.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ class ColourProvider
148148

149149
/// Reset colours
150150
virtual void Reset() = 0;
151+
152+
/// Virtual destructor to ensure correct destruction of derived classes
153+
virtual ~ColourProvider() = default;
151154
};
152155

153156
/// A ColourWheel is like a continuous colour palate that can be sampled.

0 commit comments

Comments
 (0)