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:
parent
008f5c5bb7
commit
d2a6728430
1 changed files with 1 additions and 0 deletions
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue