firmware: don't leak fp when not patched.

This commit is contained in:
riccardom 2011-03-25 17:15:14 +00:00
parent b3122f97ee
commit 42ffac8197
1 changed files with 1 additions and 0 deletions

View File

@ -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)
{