summaryrefslogtreecommitdiff
path: root/Source/Swig/symbol.c
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Swig/symbol.c')
-rw-r--r--Source/Swig/symbol.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Swig/symbol.c b/Source/Swig/symbol.c
index e77f818de..2202f61c6 100644
--- a/Source/Swig/symbol.c
+++ b/Source/Swig/symbol.c
@@ -1875,15 +1875,15 @@ ParmList *Swig_symbol_template_defargs(Parm *parms, Parm *targs, Symtab *tscope,
Delete(ntq);
ntq = ty;
}
- /* Printf(stderr,"value %s %s %s\n",value,ntr,ntq); */
cp = NewParmWithoutFileLineInfo(ntq, 0);
- if (lp)
- set_nextSibling(lp, cp);
- else
- expandedparms = CopyParm(cp);
+ if (lp) {
+ set_nextSibling(lp, cp);
+ Delete(cp);
+ } else {
+ expandedparms = cp;
+ }
lp = cp;
tp = nextSibling(tp);
- Delete(cp);
Delete(nt);
Delete(ntq);
} else {