diff --git a/Source/Swig/cwrap.c b/Source/Swig/cwrap.c index f2118a56d..db4f5c72f 100644 --- a/Source/Swig/cwrap.c +++ b/Source/Swig/cwrap.c @@ -1147,6 +1147,7 @@ Swig_DestructorToFunction(Node *n, String *classname, int cplus, int flags) SwigType_add_pointer(type); p = NewParm(type,"self"); Setattr(p,"self","1"); + Setattr(p,"hidden","1"); Setattr(p,"wrap:disown","1"); Delete(type); type = NewString("void");