kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #41895
Re: [Patch] Fix some memory leaks
Hi,
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. :/
Simon
Follow ups
References