Fix dangling open file introduced as recent workaround
This commit is contained in:
parent
7f84f6aeb1
commit
e5c1959dcd
|
@ -80,15 +80,10 @@ bool NETLIST_READER::ReadOldFmtdNetList( FILE* aFile )
|
||||||
/* First, read the netlist: Build the list of footprints found in netlist
|
/* First, read the netlist: Build the list of footprints found in netlist
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __WXMAC__
|
|
||||||
// netlineReader dtor will close aFile
|
// netlineReader dtor will close aFile
|
||||||
FILE_LINE_READER netlineReader( aFile, m_netlistFullName );
|
FILE_LINE_READER netlineReader( aFile, m_netlistFullName );
|
||||||
#else
|
COMPONENT_INFO* curComponent = NULL;
|
||||||
//Seems that the setvbuf call destroys the FILE buffer (already allocated)
|
|
||||||
//And looses the first 4096 bytes so we set doOwn => false
|
|
||||||
FILE_LINE_READER netlineReader( aFile, m_netlistFullName, false );
|
|
||||||
#endif
|
|
||||||
COMPONENT_INFO *curComponent = NULL;
|
|
||||||
while( netlineReader.ReadLine() )
|
while( netlineReader.ReadLine() )
|
||||||
{
|
{
|
||||||
char* line = StrPurge( netlineReader.Line() );
|
char* line = StrPurge( netlineReader.Line() );
|
||||||
|
|
Loading…
Reference in New Issue