disown the 'self' pointer when deleting

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7753 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-10-31 09:35:14 +00:00
commit d2a6728430

View file

@ -1044,6 +1044,7 @@ Swig_DestructorToFunction(Node *n, String *classname, int cplus, int flags)
type = NewString(classname);
SwigType_add_pointer(type);
p = NewParm(type,"self");
Setattr(p,"wrap:disown","1");
Delete(type);
type = NewString("void");