Snes9x - cheats: Fix of delete instead of free on strdup. (#971)

This commit is contained in:
bladeoner 2021-05-17 01:28:59 +02:00 committed by GitHub
parent 243865281b
commit 14f06f25c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -426,7 +426,7 @@ SCheatGroup S9xCreateCheatGroup (const char *name, const char *cheat)
g.c.push_back (c); g.c.push_back (c);
} }
delete[] code_string; free(code_string);
return g; return g;
} }