yaqwsx / PcbDraw

Convert your KiCAD board into a nicely looking 2D drawing suitable for pinout diagrams
MIT License
1.16k stars 91 forks source link

Fix memory leak in pcbnew (KiCad) libraries. #27

Closed set-soft closed 4 years ago

set-soft commented 4 years ago

Calling Pads() is deprecated and leaks memory in DLIST_ITERATOR_WRAPPER So we must first try PadsList(), and use Pads() only if it failed (old API).