Jelajahi Sumber

handle missing virtual destructors
clang translation: destructinplace needs to know what to erase.

AzaezelX 1 tahun lalu
induk
melakukan
a58f98167f

+ 1 - 1
Engine/source/T3D/gameBase/moveManager.h

@@ -57,7 +57,7 @@ struct Move
    bool trigger[MaxTriggerKeys];
 
    Move();
-
+   virtual ~Move() {};
    virtual void pack(BitStream *stream, const Move * move = NULL);
    virtual void unpack(BitStream *stream, const Move * move = NULL);
    virtual void clamp();

+ 1 - 1
Engine/source/gfx/video/theoraTexture.h

@@ -263,7 +263,7 @@ class TheoraTexture : private IOutputStream< TheoraTextureFrame* >,
             
             ///
             AsyncState( const ThreadSafeRef< OggInputStream >& oggStream, bool looping = false );
-            
+            virtual ~AsyncState() {};
             /// Return the Theora decoder substream.
             OggTheoraDecoder* getTheora() const { return mTheoraDecoder; }