add 'newfree' typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8486 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6b365aa9f0
commit
f3ffb41b62
1 changed files with 3 additions and 0 deletions
|
|
@ -63,6 +63,9 @@
|
|||
%set_output(SWIG_FromCharPtr(*$1));
|
||||
}
|
||||
|
||||
%typemap(newfree,noblock=1) Char * {
|
||||
%delete_array($1);
|
||||
}
|
||||
|
||||
/* varin */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue