More File Closing

Shocked at the lack of file closing in the rest of the
ridefile readers.
This commit is contained in:
Mark Liversedge
2013-05-19 16:00:27 +01:00
parent fdabbf632a
commit bbec5e3dd2
5 changed files with 17 additions and 7 deletions

View File

@@ -231,10 +231,12 @@ struct SyncFileReaderState
}
if (stop) {
file.close();
delete rideFile;
return NULL;
}
else {
} else {
file.close();
return rideFile;
}
}