diff --git a/Lib/typemaps/strings.swg b/Lib/typemaps/strings.swg index 0c6721428..ae0b31d85 100644 --- a/Lib/typemaps/strings.swg +++ b/Lib/typemaps/strings.swg @@ -63,6 +63,9 @@ %set_output(SWIG_FromCharPtr(*$1)); } +%typemap(newfree,noblock=1) Char * { + %delete_array($1); +} /* varin */