Remove unnecessary memory allocation from substituteResolvedType()

Don't allocate memory just to leak it, SwigType_typedef_resolve_all() already
returns a copy we can use.
This commit is contained in:
Vadim Zeitlin 2016-04-26 19:56:34 +02:00
commit dcda566ce6

View file

@ -304,7 +304,7 @@ public:
* ----------------------------------------------------------------------------- */
void substituteResolvedType(output_target target, SwigType *pt, String *tm) {
SwigType *type = Copy(SwigType_typedef_resolve_all(pt));
SwigType *type = SwigType_typedef_resolve_all(pt);
SwigType *strippedtype = SwigType_strip_qualifiers(type);
if (Strstr(tm, "$resolved_type")) {