← Back to team overview

kicad-developers team mailing list archive

Re: [Patch] Fix some memory leaks

 

Indeed,

there is actually a plan to improve this in the future. Personally, I
even wrote down a very rough idea myself:

https://github.com/pointhi/kicad-python/wiki/swig-interface-idea

I was able to compile eeschema with swig binding
(https://github.com/pointhi/kicad-source-mirror/commits/eeschema_swig),
but it looks like I need to wait until the unified coordinate system is
integrated, to start with the real work. Otherwise, sharing a common
library between eeschema and pcbnew could require a unnecessary number
of hacks.

Regards, Thomas

Am 13.08.19 um 18:41 schrieb Simon Richter:
> 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
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 

Attachment: signature.asc
Description: OpenPGP digital signature


References