The movie name created in recordMovie() gets freed before it's used as a parameter for FCEUI_SaveMovie, possibly creating a corrupted file name.
The same erroneous line of code is also repeated in recordMovieAs, although its value is not used, so we remove it altogether.
Thanks for submitting a patch to resolve this issue. Your patch has been applied in r3194. Thanks !