* 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
This commit is contained in:
parent
835da2f07b
commit
952b1bf355
@ -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>
|
Tue Jun 29 19:39:59 2010 Masaki Suketa <masaki.suketa@nifty.ne.jp>
|
||||||
|
|
||||||
* test/win32ole/test_win32ole_method.rb (is_ruby64): check
|
* test/win32ole/test_win32ole_method.rb (is_ruby64): check
|
||||||
|
@ -1107,6 +1107,7 @@ strio_write(VALUE self, VALUE str)
|
|||||||
long len, olen;
|
long len, olen;
|
||||||
rb_encoding *enc, *enc2;
|
rb_encoding *enc, *enc2;
|
||||||
|
|
||||||
|
RB_GC_GUARD(str);
|
||||||
if (TYPE(str) != T_STRING)
|
if (TYPE(str) != T_STRING)
|
||||||
str = rb_obj_as_string(str);
|
str = rb_obj_as_string(str);
|
||||||
enc = rb_enc_get(ptr->string);
|
enc = rb_enc_get(ptr->string);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user