ALT Linux repositórios
Group :: Jogos/Enigmas
RPM: kiki
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: kiki-1.0.2-debian-virtual-destructors.patch
Download
Download
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 <pdewacht@gmail.com>
--- 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 ();