diff options
Diffstat (limited to 'NxWidgets/libnxwidgets/include/iscrollable.hxx')
-rw-r--r-- | NxWidgets/libnxwidgets/include/iscrollable.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/NxWidgets/libnxwidgets/include/iscrollable.hxx b/NxWidgets/libnxwidgets/include/iscrollable.hxx index 21a69e487..b0e65a9db 100644 --- a/NxWidgets/libnxwidgets/include/iscrollable.hxx +++ b/NxWidgets/libnxwidgets/include/iscrollable.hxx @@ -103,6 +103,15 @@ namespace NXWidgets { public: /** + * A virtual destructor is required in order to override the IScrollable + * destructor. We do this because if we delete IScrollable, we want the + * destructor of the class that inherits from IScrollable to run, not this + * one. + */ + + virtual ~IScrollable(void) { } + + /** * Gets the x coordinate of the virtual canvas. * * @return The x coordinate of the virtual canvas. |