Fix for bug 3447426: memory leak in vector.__getitem__
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12855 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
9dda4dd3fd
commit
bdc9b61dc2
2 changed files with 4 additions and 0 deletions
|
|
@ -608,6 +608,7 @@ namespace swig
|
|||
%define %swig_container_methods(Container...)
|
||||
|
||||
%newobject __getslice__;
|
||||
%newobject __getitem__(PySliceObject *slice);
|
||||
|
||||
#if defined(SWIGPYTHON_BUILTIN)
|
||||
%feature("python:slot", "nb_nonzero", functype="inquiry") __nonzero__;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue