aboutsummaryrefslogtreecommitdiff
path: root/ruby/ext/google/protobuf_c/protobuf.c
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2016-08-29 17:05:43 -0700
committerGitHub <noreply@github.com>2016-08-29 17:05:43 -0700
commite721ce66cfeaa5d8790ecba09c73d1ef399887d2 (patch)
treebf75df4980037f4c4dc4b150a12611a0546c847f /ruby/ext/google/protobuf_c/protobuf.c
parent7e627738b3b5c4ffba54343b6872a09153575851 (diff)
parent3a674ffe05164b858d88aae4e241e2c44b7ff1a7 (diff)
downloadprotobuf-e721ce66cfeaa5d8790ecba09c73d1ef399887d2.tar.gz
protobuf-e721ce66cfeaa5d8790ecba09c73d1ef399887d2.tar.bz2
protobuf-e721ce66cfeaa5d8790ecba09c73d1ef399887d2.zip
Merge pull request #2012 from haberman/rubymapgcfix
Ruby: make sure map parsing frames are GC-rooted.
Diffstat (limited to 'ruby/ext/google/protobuf_c/protobuf.c')
-rw-r--r--ruby/ext/google/protobuf_c/protobuf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ruby/ext/google/protobuf_c/protobuf.c b/ruby/ext/google/protobuf_c/protobuf.c
index 7cde4aec..98963667 100644
--- a/ruby/ext/google/protobuf_c/protobuf.c
+++ b/ruby/ext/google/protobuf_c/protobuf.c
@@ -112,4 +112,6 @@ void Init_protobuf_c() {
upb_def_to_ruby_obj_map = rb_hash_new();
rb_gc_register_address(&upb_def_to_ruby_obj_map);
+ map_parse_frames = rb_ary_new();
+ rb_gc_register_address(&map_parse_frames);
}