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
This commit is contained in:
William S Fulton 2012-08-07 21:58:52 +00:00
commit b6f6fcd6d8

View file

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