firmware: don't leak fp when not patched.
This commit is contained in:
parent
b3122f97ee
commit
42ffac8197
|
@ -571,6 +571,7 @@ bool CFIRMWARE::load()
|
|||
path.getpathnoext(path.FIRMWARE, &MMU.fw.userfile[0]);
|
||||
strcat(MMU.fw.userfile, ".dfc"); // DeSmuME Firmware Config
|
||||
|
||||
fclose(fp);
|
||||
fp = fopen(MMU.fw.userfile, "rb");
|
||||
if (fp)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue