fixed a but that it never delete fis in ParseCSVFile
This commit is contained in:
@@ -55,13 +55,10 @@ namespace hgl
|
||||
|
||||
template<typename T> inline bool ParseCSVFile(const OSString &filename,CSVParseCallback<T> *pcb)
|
||||
{
|
||||
io::FileInputStream *fis=new io::FileInputStream;
|
||||
io::OpenFileInputStream fis(filename);
|
||||
|
||||
if(!fis->Open(filename))
|
||||
{
|
||||
delete fis;
|
||||
if(!fis)
|
||||
return false;
|
||||
}
|
||||
|
||||
return ParseCSV<T>(fis,pcb);
|
||||
}
|
||||
|
Reference in New Issue
Block a user