From 33282360e74f53f02995bb8aedd14c96dfac6a77 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Fri, 9 Dec 2005 09:20:43 +0000 Subject: [PATCH] add the destructor even when -nodefault is used git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7958 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Modules/lang.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Modules/lang.cxx b/Source/Modules/lang.cxx index 18fa9c561..502691561 100644 --- a/Source/Modules/lang.cxx +++ b/Source/Modules/lang.cxx @@ -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);