[前][次][番号順一覧][スレッド一覧]

ruby-changes:30772

From: nobu <ko1@a...>
Date: Fri, 6 Sep 2013 10:29:30 +0900 (JST)
Subject: [ruby-changes:30772] nobu:r42851 (trunk): transcode.c: GC guard

nobu	2013-09-06 10:29:21 +0900 (Fri, 06 Sep 2013)

  New Revision: 42851

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42851

  Log:
    transcode.c: GC guard
    
    * transcode.c (rb_econv_substr_append): prevent src from GC.

  Modified files:
    trunk/transcode.c
Index: transcode.c
===================================================================
--- transcode.c	(revision 42850)
+++ transcode.c	(revision 42851)
@@ -1850,6 +1850,7 @@ rb_econv_substr_append(rb_econv_t *ec, V https://github.com/ruby/ruby/blob/trunk/transcode.c#L1850
         rb_econv_check_error(ec);
     }
 
+    RB_GC_GUARD(src);
     return dst;
 }
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]