diff --git a/Core/Libraries/Source/WWVegas/WWDownload/Download.h b/Core/Libraries/Source/WWVegas/WWDownload/Download.h index 389a4abe33..5dc20b909b 100644 --- a/Core/Libraries/Source/WWVegas/WWDownload/Download.h +++ b/Core/Libraries/Source/WWVegas/WWDownload/Download.h @@ -64,7 +64,7 @@ class CDownload m_predictionTimes[i] = 0; } } - ~CDownload() { delete m_Ftp; } + virtual ~CDownload() { delete m_Ftp; } public: virtual HRESULT PumpMessages(); diff --git a/Core/Libraries/Source/profile/internal_result.h b/Core/Libraries/Source/profile/internal_result.h index 3e952fa040..36a9004372 100644 --- a/Core/Libraries/Source/profile/internal_result.h +++ b/Core/Libraries/Source/profile/internal_result.h @@ -36,6 +36,7 @@ class ProfileResultFileCSV: public ProfileResultInterface { ProfileResultFileCSV(void) {} + virtual ~ProfileResultFileCSV() {} void WriteThread(ProfileFuncLevel::Thread &thread); @@ -84,6 +85,7 @@ class ProfileResultFileDOT: public ProfileResultInterface private: ProfileResultFileDOT(const char *fileName, const char *frameName, int foldThreshold); + virtual ~ProfileResultFileDOT() {} struct FoldHelper { diff --git a/Generals/Code/GameEngine/Include/GameClient/CampaignManager.h b/Generals/Code/GameEngine/Include/GameClient/CampaignManager.h index 40c1fe96be..5de5d1edd9 100644 --- a/Generals/Code/GameEngine/Include/GameClient/CampaignManager.h +++ b/Generals/Code/GameEngine/Include/GameClient/CampaignManager.h @@ -114,7 +114,7 @@ class CampaignManager : public Snapshot { public: CampaignManager( void ); - ~CampaignManager( void ); + virtual ~CampaignManager( void ); // snapshot methods virtual void crc( Xfer *xfer ) { } diff --git a/Generals/Code/GameEngine/Include/GameLogic/AI.h b/Generals/Code/GameEngine/Include/GameLogic/AI.h index 5814cad7a6..a361267fb3 100644 --- a/Generals/Code/GameEngine/Include/GameLogic/AI.h +++ b/Generals/Code/GameEngine/Include/GameLogic/AI.h @@ -136,7 +136,7 @@ class TAiData : public Snapshot { public: TAiData(); - ~TAiData(); + virtual ~TAiData(); void addSideInfo(AISideInfo *info); void addFactionBuildList(AISideBuildList *buildList); diff --git a/Generals/Code/GameEngine/Include/GameLogic/AIPathfind.h b/Generals/Code/GameEngine/Include/GameLogic/AIPathfind.h index 4818f1aeec..63e76b7d7e 100644 --- a/Generals/Code/GameEngine/Include/GameLogic/AIPathfind.h +++ b/Generals/Code/GameEngine/Include/GameLogic/AIPathfind.h @@ -608,7 +608,7 @@ class Pathfinder : PathfindServicesInterface, public Snapshot public: Pathfinder( void ); - ~Pathfinder() ; + virtual ~Pathfinder(); void reset( void ); ///< Reset system in preparation for new map diff --git a/Generals/Code/GameEngine/Include/GameNetwork/ConnectionManager.h b/Generals/Code/GameEngine/Include/GameNetwork/ConnectionManager.h index 81b99037a9..d69a3436e0 100644 --- a/Generals/Code/GameEngine/Include/GameNetwork/ConnectionManager.h +++ b/Generals/Code/GameEngine/Include/GameNetwork/ConnectionManager.h @@ -51,7 +51,7 @@ class ConnectionManager { public: ConnectionManager(); - ~ConnectionManager(); + virtual ~ConnectionManager(); virtual void init(); ///< Initialize this instance. virtual void reset(); ///< Take this instance back to the initial state. diff --git a/Generals/Code/GameEngine/Include/GameNetwork/GameInfo.h b/Generals/Code/GameEngine/Include/GameNetwork/GameInfo.h index 1d453186b2..5608e4e251 100644 --- a/Generals/Code/GameEngine/Include/GameNetwork/GameInfo.h +++ b/Generals/Code/GameEngine/Include/GameNetwork/GameInfo.h @@ -281,6 +281,7 @@ class SkirmishGameInfo : public GameInfo, public Snapshot for (Int i = 0; i< MAX_SLOTS; ++i) setSlotPointer(i, &m_skirmishSlot[i]); } + virtual ~SkirmishGameInfo(){} }; extern SkirmishGameInfo *TheSkirmishGameInfo; diff --git a/Generals/Code/GameEngine/Include/GameNetwork/GameSpy/StagingRoomGameInfo.h b/Generals/Code/GameEngine/Include/GameNetwork/GameSpy/StagingRoomGameInfo.h index a66e9a1e18..2384dac198 100644 --- a/Generals/Code/GameEngine/Include/GameNetwork/GameSpy/StagingRoomGameInfo.h +++ b/Generals/Code/GameEngine/Include/GameNetwork/GameSpy/StagingRoomGameInfo.h @@ -99,6 +99,7 @@ class GameSpyStagingRoom : public GameInfo public: GameSpyStagingRoom(); + virtual ~GameSpyStagingRoom(){} virtual void reset( void ); void cleanUpSlotPointers(void); diff --git a/Generals/Code/GameEngine/Include/GameNetwork/LANGameInfo.h b/Generals/Code/GameEngine/Include/GameNetwork/LANGameInfo.h index 1ea0026c2c..123ce63458 100644 --- a/Generals/Code/GameEngine/Include/GameNetwork/LANGameInfo.h +++ b/Generals/Code/GameEngine/Include/GameNetwork/LANGameInfo.h @@ -82,6 +82,7 @@ class LANGameInfo : public GameInfo public: LANGameInfo(); + virtual ~LANGameInfo(){} void setSlot( Int slotNum, LANGameSlot slotInfo ); ///< Set the slot state (human, open, AI, etc) LANGameSlot* getLANSlot( Int slotNum ); ///< Get the slot const LANGameSlot* getConstLANSlot( Int slotNum ) const; ///< Get the slot diff --git a/Generals/Code/GameEngineDevice/Include/W3DDevice/GameClient/W3DProjectedShadow.h b/Generals/Code/GameEngineDevice/Include/W3DDevice/GameClient/W3DProjectedShadow.h index a384b6e177..0eaabe9d91 100644 --- a/Generals/Code/GameEngineDevice/Include/W3DDevice/GameClient/W3DProjectedShadow.h +++ b/Generals/Code/GameEngineDevice/Include/W3DDevice/GameClient/W3DProjectedShadow.h @@ -99,7 +99,7 @@ class W3DProjectedShadow : public Shadow public: W3DProjectedShadow(void); - ~W3DProjectedShadow(void); + virtual ~W3DProjectedShadow(void); void setRenderObject( RenderObjClass *robj) {m_robj=robj;} void setObjPosHistory(const Vector3 &pos) {m_lastObjPosition=pos;} ///