[win] fixed a bug that makes movie recording dialog crash.

This commit is contained in:
zeromus 2007-08-30 05:49:37 +00:00
parent b75019c692
commit c5d5b18967
1 changed files with 3 additions and 1 deletions

View File

@ -685,6 +685,7 @@ static BOOL CALLBACK RecordDialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LP
p = (struct CreateMovieParameters*)lParam;
UpdateRecordDialogPath(hwndDlg, p->szFilename);
free(p->szFilename);
p->szFilename = 0;
/* Populate the "record from..." dialog */
{
@ -851,6 +852,7 @@ void FCEUD_MovieRecordTo()
meta);
}
free(p.szFilename);
if(p.szFilename)
free(p.szFilename);
}