allow to apply freearg ven when no in typemap is in place when numimputs=0
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8461 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b78b990eab
commit
841b1e15bc
2 changed files with 6 additions and 6 deletions
|
|
@ -914,7 +914,8 @@ public:
|
|||
void insertCleanupCode(ParmList *l, String *cleanup) {
|
||||
String *tm;
|
||||
for (Parm *p = l; p; ) {
|
||||
if (!checkAttribute(p,"tmap:in:numinputs","0") && (tm = Getattr(p,"tmap:freearg"))) {
|
||||
// if (!checkAttribute(p,"tmap:in:numinputs","0") && (tm = Getattr(p,"tmap:freearg"))) {
|
||||
if ((tm = Getattr(p,"tmap:freearg"))) {
|
||||
if (Len(tm) != 0) {
|
||||
Replaceall(tm,"$source",Getattr(p,"lname"));
|
||||
Printv(cleanup,tm,"\n",NIL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue