diff --git a/src/game/Pvs.cpp b/src/game/Pvs.cpp index 9d1f36e95..9bd19136c 100644 --- a/src/game/Pvs.cpp +++ b/src/game/Pvs.cpp @@ -973,20 +973,20 @@ idPVS::Shutdown */ void idPVS::Shutdown( void ) { if ( connectedAreas ) { - delete connectedAreas; + delete[] connectedAreas; connectedAreas = NULL; } if ( areaQueue ) { - delete areaQueue; + delete[] areaQueue; areaQueue = NULL; } if ( areaPVS ) { - delete areaPVS; + delete[] areaPVS; areaPVS = NULL; } if ( currentPVS ) { for ( int i = 0; i < MAX_CURRENT_PVS; i++ ) { - delete currentPVS[i].pvs; + delete[] currentPVS[i].pvs; currentPVS[i].pvs = NULL; } } diff --git a/src/game/anim/Anim.h b/src/game/anim/Anim.h index 2ac81534c..474ef214a 100644 --- a/src/game/anim/Anim.h +++ b/src/game/anim/Anim.h @@ -245,7 +245,9 @@ class idMD5Anim { public: idMD5Anim(); - ~idMD5Anim(); + // HUMANHEAD's hhMD5Anim derives from this, and idAnimManager deletes + // it through an idMD5Anim pointer. + virtual ~idMD5Anim(); void Free( void ); bool Reload( void );