Description: add missing virtual destructors GCC gives the following warning: deleting object of polymorphic class type KObject/KikiCharacter which has non-virtual destructor might cause undefined behaviour Fix this by adding empty virtual destructors. The warning is probably spurious for KikiCharacter but better safe than sorry. Author: Peter De Wachter --- a/kodilib/src/tools/KNotificationObject.h +++ b/kodilib/src/tools/KNotificationObject.h @@ -17,6 +17,9 @@ class KObject { INTROSPECTION + +public: + virtual ~KObject() { } }; // -------------------------------------------------------------------------------------------------------- --- a/src/gui/KikiCharacter.h +++ b/src/gui/KikiCharacter.h @@ -20,6 +20,7 @@ public: // ........................................................................ PUBLIC KikiCharacter ( char ); + virtual ~KikiCharacter () { } virtual void display (); virtual void render ();