diff options
author | tarui <tarui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-29 12:12:07 +0000 |
---|---|---|
committer | tarui <tarui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-29 12:12:07 +0000 |
commit | 952b1bf355b8fb4f8d05dfef18eb12236c5dc02d (patch) | |
tree | 4d0d2eaf66ed56310880ed2a5c6c3cb5f72dd426 | |
parent | 835da2f07b41655296a1a73d56bf3c97d3c6275f (diff) |
* ext/stringio/stringio.c (strio_write): add RB_GC_GUARD.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/stringio/stringio.c | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Tue Jun 29 21:11:15 2010 Masaya Tarui <tarui@ruby-lnag.org> + + * ext/stringio/stringio.c (strio_write): add RB_GC_GUARD. + + Tue Jun 29 19:39:59 2010 Masaki Suketa <masaki.suketa@nifty.ne.jp> * test/win32ole/test_win32ole_method.rb (is_ruby64): check diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c index a554e7187a..c93ba10466 100644 --- a/ext/stringio/stringio.c +++ b/ext/stringio/stringio.c @@ -1107,6 +1107,7 @@ strio_write(VALUE self, VALUE str) long len, olen; rb_encoding *enc, *enc2; + RB_GC_GUARD(str); if (TYPE(str) != T_STRING) str = rb_obj_as_string(str); enc = rb_enc_get(ptr->string); |