mirror of
https://github.com/accelerator74/Cleaner.git
synced 2025-12-07 10:38:27 +00:00
Fix memory leaks
Thanks spumer
This commit is contained in:
parent
1c2da3aa00
commit
4b5c78505b
@ -110,7 +110,13 @@ bool Cleaner::SDK_OnLoad(char *error, size_t maxlength, bool late)
|
|||||||
void Cleaner::SDK_OnUnload()
|
void Cleaner::SDK_OnUnload()
|
||||||
{
|
{
|
||||||
if(g_pDetour)
|
if(g_pDetour)
|
||||||
|
{
|
||||||
g_pDetour->Destroy();
|
g_pDetour->Destroy();
|
||||||
|
g_pDetour = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
for(int i = 0; i < g_iStrings; ++i)
|
||||||
|
delete [] g_szStrings[i];
|
||||||
|
|
||||||
delete [] g_szStrings;
|
delete [] g_szStrings;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user