Fix segfault of swig due to virtual methods

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13402 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Leif Middelschulte 2012-07-25 14:30:46 +00:00
commit 4bc1223c1a

View file

@ -1226,7 +1226,7 @@ ready:
if (!Getattr(parms, "lname"))
Setattr(parms, "lname", "arg1");
//SwigType *stype = Copy(Getattr(Swig_methodclass(n), "sym:name"));
SwigType *stype = Copy(getProxyName(parms));
SwigType *stype = Copy(getProxyName(Swig_methodclass(n)));
SwigType_add_pointer(stype);
Setattr(parms, "c:stype", stype);
}