kicad-developers team mailing list archive
Mailing list archive
Question about PCB_PARSER
I'm looking how to use the dsnlexer; in kicad_plugin.cpp, PCB_IO::Load a PCB_PARSER is instantiated using a FILE_LINE_READER created on the heap.
However the PCB_PARSER constructor uses a constructor which, according to the comments, doesn't take possession of the LINE_READER.
Wouldn't this cause a leak of FILE_LINE_READERs every time a file is opened or I'm missing something?ZZ