From: Stefan Z. <sz...@gm...> - 2011-12-01 21:01:04
|
On Thu, Dec 1, 2011 at 3:38 AM, Andrew Ward <and...@gm...> wrote: > In the process I have found a bug in the Python std::vector implementation. > The __getitem__ method has two versions, one takes an index, the other takes > a slice object. The version that takes a slice object returns a new std::vector > but does not use SWIG_POINTER_OWN and therefore leaks memory. Thanks for catching this. I have filed a bug on it, and committed a fix which will go into the next SWIG release. https://sourceforge.net/tracker/?func=detail&aid=3447426&group_id=1645&atid=101645 Stefan |