From b6f6fcd6d82619b6744410490431b9d235f56006 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Tue, 7 Aug 2012 21:58:52 +0000 Subject: [PATCH] Memory corruption fixes highlighted by DOH_MEMORY_DEBUG_POOL in Python director tests. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13554 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 75254d69f..e81ab21dd 100644 --- a/Source/Modules/lang.cxx +++ b/Source/Modules/lang.cxx @@ -2652,9 +2652,11 @@ static String *get_director_ctor_code(Node *n, String *director_ctor_code, Strin int is_abstract = abstract && !is_notabstract; if (is_protected(n) || is_abstract) { director_ctor = director_prot_ctor_code; + abstract = Copy(abstract); Delattr(pn, "abstract"); } else { if (is_notabstract) { + abstract = Copy(abstract); Delattr(pn, "abstract"); } else { abstract = 0;