Forráskód Böngészése

Merge pull request #1287 from Azaezel/alpha41/destructorDefines

handle missing virtual destructors
Brian Roberts 1 éve
szülő
commit
b2fad6e3b9

+ 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; }