Fixed memory leak bug where FCEU_LoadGameSave and FCEU_SaveGameSave functions were not closing out their file handles.

This commit is contained in:
harry 2023-08-30 17:47:16 -04:00
parent 5252188010
commit d86c81e26e
1 changed files with 2 additions and 0 deletions

View File

@ -557,6 +557,7 @@ void FCEU_SaveGameSave(CartInfo *LocalHWInfo)
LocalHWInfo->SaveGame[x].buflen, sp);
}
}
fclose(sp);
}
}
}
@ -584,6 +585,7 @@ void FCEU_LoadGameSave(CartInfo *LocalHWInfo)
}
}
}
fclose(sp);
}
}
}