From 9cb3b76e749dede7eff084a36c50c5b1d9d1b41c Mon Sep 17 00:00:00 2001 From: riccardom Date: Tue, 30 Dec 2008 15:40:12 +0000 Subject: [PATCH] Ok, This stuff is not used and that's not very elegant but that would be at least a leak and this shut up gcc. --- desmume/src/movie.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/desmume/src/movie.cpp b/desmume/src/movie.cpp index 7db7b687e..db61b770b 100644 --- a/desmume/src/movie.cpp +++ b/desmume/src/movie.cpp @@ -387,7 +387,9 @@ static void FCEUI_LoadMovie(const char *fname, bool _read_only, bool tasedit, in //LoadFM2(currMovieData, fp->stream, INT_MAX, false); - LoadFM2(currMovieData, &fstream(fname), INT_MAX, false); + fstream fs (fname); + LoadFM2(currMovieData, &fs, INT_MAX, false); + fs.close(); //TODO //fully reload the game to reinitialize everything before playing any movie