Fix memory leaks

Thanks spumer
This commit is contained in:
Accelerator74 2021-06-12 21:30:12 +05:00 committed by GitHub
parent 1c2da3aa00
commit 4b5c78505b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,7 +110,13 @@ bool Cleaner::SDK_OnLoad(char *error, size_t maxlength, bool late)
void Cleaner::SDK_OnUnload()
{
if(g_pDetour)
{
g_pDetour->Destroy();
g_pDetour = NULL;
}
for(int i = 0; i < g_iStrings; ++i)
delete [] g_szStrings[i];
delete [] g_szStrings;
}