diff --git a/desmume/src/addons/gbagame.cpp b/desmume/src/addons/gbagame.cpp index acd5ccd2a..1cec71e58 100644 --- a/desmume/src/addons/gbagame.cpp +++ b/desmume/src/addons/gbagame.cpp @@ -74,9 +74,8 @@ static void GBAgame_reset(void) if(fgame) { fread(GBArom+GBA_ROMSIZE,1,GBA_RAMSIZE,fgame); + fclose(fgame); } - fclose(fgame); - } static void GBAgame_close(void)