summaryrefslogtreecommitdiff
path: root/NxWidgets/libnxwidgets/include/islider.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'NxWidgets/libnxwidgets/include/islider.hxx')
-rw-r--r--NxWidgets/libnxwidgets/include/islider.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/NxWidgets/libnxwidgets/include/islider.hxx b/NxWidgets/libnxwidgets/include/islider.hxx
index 5ea821e42..5a9340923 100644
--- a/NxWidgets/libnxwidgets/include/islider.hxx
+++ b/NxWidgets/libnxwidgets/include/islider.hxx
@@ -99,6 +99,14 @@ namespace NXWidgets
class ISlider
{
public:
+ /**
+ * A virtual destructor is required in order to override the ISlider
+ * destructor. We do this because if we delete ISlider, we want the
+ * destructor of the class that inherits from ISlider to run, not this
+ * one.
+ */
+
+ virtual ~ISlider(void) { }
/**
* Get the smallest value that the slider can represent.