mirror of https://github.com/snes9xgit/snes9x.git
cheats: Fix of delete instead of free on strdup.
This commit is contained in:
parent
cf2d1bf791
commit
4811462f11
|
@ -426,7 +426,7 @@ SCheatGroup S9xCreateCheatGroup (const char *name, const char *cheat)
|
|||
g.c.push_back (c);
|
||||
}
|
||||
|
||||
delete[] code_string;
|
||||
free(code_string);
|
||||
|
||||
return g;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue