From f3ffb41b6211f446c19ad5d99f9c6740030d7848 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Thu, 19 Jan 2006 07:55:48 +0000 Subject: [PATCH] add 'newfree' typemap git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8486 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/typemaps/strings.swg | 3 +++ 1 file changed, 3 insertions(+) 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 */