made the Avatar destructor virtual to ensure that MyAvatar and OtherAvatar cleanup correctly

This commit is contained in:
amantley 2018-06-27 11:59:53 -07:00
parent 1804422df0
commit 99ff5f9140
3 changed files with 3 additions and 3 deletions

View file

@ -250,7 +250,7 @@ public:
Q_ENUM(DriveKeys)
explicit MyAvatar(QThread* thread);
~MyAvatar();
~MyAvatar() override;
void instantiableAvatar() override {};
void registerMetaTypes(ScriptEnginePointer engine);

View file

@ -17,7 +17,7 @@
class OtherAvatar : public Avatar {
public:
explicit OtherAvatar(QThread* thread);
~OtherAvatar();
~OtherAvatar() override;
virtual void instantiableAvatar() override { };
void createOrb() override;

View file

@ -67,7 +67,7 @@ public:
static void setShowNamesAboveHeads(bool show);
explicit Avatar(QThread* thread);
~Avatar();
virtual ~Avatar();
virtual void instantiableAvatar() = 0;