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:
parent
45a259d274
commit
b6f6fcd6d8
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue