7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 14:31:42 +00:00

GenIPC2581File(): close a temporary file before trying to delete it.

This commit is contained in:
jean-pierre charras 2025-02-16 10:43:34 +01:00
parent a1f0adcc11
commit ea1498b39b

View File

@ -1395,6 +1395,7 @@ void PCB_EDIT_FRAME::GenIPC2581File( wxCommandEvent& event )
fnin.Read( zip );
zip.Close();
fnout.Close();
fnin.GetFile()->Close();
wxRemoveFile( tempFile );
tempFile = zipfn.GetFullPath();