[macruby-changes] [934] MacRuby/branches/experimental/parse.y
source_changes at macosforge.org
source_changes at macosforge.org
Sun Mar 15 23:14:02 PDT 2009
Revision: 934
http://trac.macosforge.org/projects/ruby/changeset/934
Author: lsansonetti at apple.com
Date: 2009-03-15 23:13:59 -0700 (Sun, 15 Mar 2009)
Log Message:
-----------
do not leak the lines
Modified Paths:
--------------
MacRuby/branches/experimental/parse.y
Modified: MacRuby/branches/experimental/parse.y
===================================================================
--- MacRuby/branches/experimental/parse.y 2009-03-16 04:11:40 UTC (rev 933)
+++ MacRuby/branches/experimental/parse.y 2009-03-16 06:13:59 UTC (rev 934)
@@ -5137,7 +5137,7 @@
#ifdef RIPPER
ripper_flush(parser);
#endif
- lex_lastline = v;
+ GC_WB(&lex_lastline, v);
}
}
c = (unsigned char)*lex_p++;
@@ -5821,7 +5821,7 @@
ripper_dispatch_scan_event(parser, tHEREDOC_END);
#endif
line = here->nd_orig;
- lex_lastline = line;
+ GC_WB(&lex_lastline, line);
lex_pbeg = RSTRING_PTR(line);
lex_pend = lex_pbeg + RSTRING_LEN(line);
lex_p = lex_pbeg + here->nd_nth;
@@ -6340,7 +6340,7 @@
}
default:
--ruby_sourceline;
- lex_nextline = lex_lastline;
+ GC_WB(&lex_nextline, lex_lastline);
case -1: /* EOF no decrement*/
lex_goto_eol(parser);
#ifdef RIPPER
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090315/0e2c8fd0/attachment.html>
More information about the macruby-changes
mailing list