diff --git a/nxwm/include/iapplication.hxx b/nxwm/include/iapplication.hxx index 882c5e6ea..c586e20de 100644 --- a/nxwm/include/iapplication.hxx +++ b/nxwm/include/iapplication.hxx @@ -218,6 +218,15 @@ namespace NxWM class IApplicationFactory { public: + /** + * A virtual destructor is required in order to override the IApplicationFactory + * destructor. We do this because if we delete IApplicationFactory, we want the + * destructor of the class that inherits from IApplication to run, not this + * one. + */ + + virtual ~IApplicationFactory(void) { } + /** * Create a new instance of an application. */