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:
Marcelo Matus 2005-12-09 09:20:43 +00:00
commit 51d3cb4c9a

View file

@ -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);