mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-15 08:59:55 +00:00
More File Closing
Shocked at the lack of file closing in the rest of the ridefile readers.
This commit is contained in:
@@ -231,10 +231,12 @@ struct SyncFileReaderState
|
||||
}
|
||||
|
||||
if (stop) {
|
||||
file.close();
|
||||
delete rideFile;
|
||||
return NULL;
|
||||
}
|
||||
else {
|
||||
|
||||
} else {
|
||||
file.close();
|
||||
return rideFile;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user