diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-08 19:17:32 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-08 19:17:32 +0000 |
commit | e0ba59b708edb0fb5fdde4c7a2364d5e006705f7 (patch) | |
tree | f3a4d9a9ca3a4de399d478d650b6737c064d994e /ext/json/generator/generator.h | |
parent | a4d3990f25af1cca8f409a1a783b37dc32bf894d (diff) | |
download | ruby-e0ba59b708edb0fb5fdde4c7a2364d5e006705f7.tar.gz |
Additional experimental fix for r35261.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/json/generator/generator.h')
-rw-r--r-- | ext/json/generator/generator.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/json/generator/generator.h b/ext/json/generator/generator.h index 3220178a8f..4958cf094d 100644 --- a/ext/json/generator/generator.h +++ b/ext/json/generator/generator.h @@ -105,6 +105,7 @@ typedef struct JSON_Generator_StateStruct { Data_Get_Struct(Vstate, JSON_Generator_State, state); \ buffer = cState_prepare_buffer(Vstate); \ generate_json_##type(buffer, Vstate, state, self); \ + RB_GC_GUARD(Vstate); \ return fbuffer_to_s(buffer) static VALUE mHash_to_json(int argc, VALUE *argv, VALUE self); |