add the destructor even when -nodefault is used
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7958 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
d7c67aecfe
commit
51d3cb4c9a
1 changed files with 2 additions and 0 deletions
|
|
@ -2103,6 +2103,8 @@ int Language::classHandler(Node *n) {
|
|||
Delete(cn);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!ImportMode) {
|
||||
if (!Getattr(n,"has_destructor") && (!Getattr(n,"allocate:has_destructor")) && (Getattr(n,"allocate:default_destructor"))) {
|
||||
Node *cn = makeDestructor(CurrentClass);
|
||||
destructorHandler(cn);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue