fix address sanitizer issues

This commit is contained in:
nillerusr
2022-04-25 17:21:00 +03:00
parent a5e9cdcbe2
commit 2ec2a47a53
17 changed files with 43 additions and 37 deletions
+1 -1
View File
@@ -385,7 +385,7 @@ void Templates_RemoveAll(void)
free(pTemplate->pszMapData);
if ( pTemplate->pszFixedMapData )
{
free(pTemplate->pszFixedMapData);
delete[] pTemplate->pszFixedMapData;
}
free(pTemplate);
+5
View File
@@ -137,6 +137,11 @@ public:
return pResult;
}
void operator delete(void *p)
{
MemAlloc_Free( p );
};
private:
CAI_BaseNPC *m_pOuter;
};
+2 -3
View File
@@ -45,9 +45,8 @@ public:
DECLARE_DATADESC();
private:
bool UpdateState( void );
int m_state;
bool UpdateState( void );
int m_state;
};
LINK_ENTITY_TO_CLASS( func_areaportal, CAreaPortal );