fix SwigValueWrapper

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6443 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-10-19 23:34:04 +00:00
commit a66c87f147
5 changed files with 109 additions and 5 deletions

View file

@ -1004,8 +1004,10 @@ static void typemap_locals(DOHString *s, ParmList *l, Wrapper *f, int argnum) {
p = l;
while (p) {
SwigType *pt = Getattr(p,"type");
SwigType *at = SwigType_alttype(pt, 1);
String *pn = Getattr(p,"name");
String *value = Getattr(p,"value");
if (at) pt = at;
if (pn) {
if (Len(pn) > 0) {
String *str;
@ -1041,6 +1043,7 @@ static void typemap_locals(DOHString *s, ParmList *l, Wrapper *f, int argnum) {
}
}
p = nextSibling(p);
Delete(at);
}
}