diff options
Diffstat (limited to 'NxWidgets/libnxwidgets/include/ibitmap.hxx')
-rw-r--r-- | NxWidgets/libnxwidgets/include/ibitmap.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/NxWidgets/libnxwidgets/include/ibitmap.hxx b/NxWidgets/libnxwidgets/include/ibitmap.hxx index 5eaa5b3c9..923df407a 100644 --- a/NxWidgets/libnxwidgets/include/ibitmap.hxx +++ b/NxWidgets/libnxwidgets/include/ibitmap.hxx @@ -103,6 +103,15 @@ namespace NXWidgets { public: /** + * A virtual destructor is required in order to override the IBitmap + * destructor. We do this because if we delete IBitmap, we want the + * destructor of the class that inherits from IBitmap to run, not this + * one. + */ + + virtual ~IBitmap(void) { } + + /** * Get the bitmap's color format. * * @return The bitmap's width. |