diff --git a/Lib/typemaps/inoutlist.swg b/Lib/typemaps/inoutlist.swg index afee057ed..8d53f739c 100644 --- a/Lib/typemaps/inoutlist.swg +++ b/Lib/typemaps/inoutlist.swg @@ -172,7 +172,7 @@ values. if (res$argnum == SWIG_NEWOBJ) { %append_output(from_meth((*$1))); } else { - %append_output(SWIG_NewPointerObj((void*)($1), $1_descriptor, 0)); + %append_output(SWIG_NewPointerObj((void*)($1), $1_descriptor, %newpointer_flags)); } } %enddef