Revert introduction of minor memory leak in Ruby wrappers
This commit is contained in:
parent
7ef1b04a86
commit
1330337491
1 changed files with 5 additions and 1 deletions
|
|
@ -2136,7 +2136,11 @@ public:
|
||||||
String *protoTypes = NewString("");
|
String *protoTypes = NewString("");
|
||||||
do {
|
do {
|
||||||
Append( protoTypes, "\n\" ");
|
Append( protoTypes, "\n\" ");
|
||||||
if ( !isCtor ) Printv( protoTypes, SwigType_str(Getattr(sibl,"type"), NULL), " ", NIL );
|
if (!isCtor) {
|
||||||
|
SwigType *type = SwigType_str(Getattr(sibl, "type"), NULL);
|
||||||
|
Printv(protoTypes, type, " ", NIL);
|
||||||
|
Delete(type);
|
||||||
|
}
|
||||||
Printv(protoTypes, methodName, NIL );
|
Printv(protoTypes, methodName, NIL );
|
||||||
Parm* p = Getattr(sibl, "wrap:parms");
|
Parm* p = Getattr(sibl, "wrap:parms");
|
||||||
if (p && (current == MEMBER_FUNC || current == MEMBER_VAR ||
|
if (p && (current == MEMBER_FUNC || current == MEMBER_VAR ||
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue