Skip to content

Commit

Permalink
Revert introduction of minor memory leak in Ruby wrappers
Browse files Browse the repository at this point in the history
  • Loading branch information
wsfulton committed May 17, 2016
1 parent 7ef1b04 commit 1330337
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Source/Modules/ruby.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2136,7 +2136,11 @@ class RUBY:public Language {
String *protoTypes = NewString("");
do {
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 );
Parm* p = Getattr(sibl, "wrap:parms");
if (p && (current == MEMBER_FUNC || current == MEMBER_VAR ||
Expand Down

0 comments on commit 1330337

Please sign in to comment.