← Back to team overview

kicad-developers team mailing list archive

Re: [Patch] Fix some memory leaks



On Tue, Aug 13, 2019 at 05:43:02PM +0200, Ian McInerney wrote:

> Smart pointers would definitely have been nicer to use, but the issue we
> have with the board objects is they are passed out through SWIG to Python
> currently, and SWIG doesn't seem to support unique_ptr, so I am not sure
> how it would react if we gave it a deque of unique_ptrs. Anyone know if
> that would break anything?

That would break horribly, indeed.

It would probably make sense to have a higher-level interface for
scripting, and SWIG that instead of exposing the internals, breaking all
the scripts everytime we improve something. :/


Follow ups