diff options
author | Josh Haberman <jhaberman@gmail.com> | 2016-08-25 13:15:28 -0700 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2016-08-26 09:03:55 -0700 |
commit | d4213d839f5dc29987f7aaaec595f435ea56db6a (patch) | |
tree | 230fdac61614940afa9d2ac3287c1117a40ab2e8 /ruby/ext/google/protobuf_c/protobuf.h | |
parent | 3d9d1a1255583bac550f7bf94f3016e8c238fa5e (diff) | |
download | protobuf-d4213d839f5dc29987f7aaaec595f435ea56db6a.tar.gz protobuf-d4213d839f5dc29987f7aaaec595f435ea56db6a.tar.bz2 protobuf-d4213d839f5dc29987f7aaaec595f435ea56db6a.zip |
Ruby: make sure map parsing frames are GC-rooted.
Diffstat (limited to 'ruby/ext/google/protobuf_c/protobuf.h')
-rw-r--r-- | ruby/ext/google/protobuf_c/protobuf.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ruby/ext/google/protobuf_c/protobuf.h b/ruby/ext/google/protobuf_c/protobuf.h index 08b8d516..d5ced567 100644 --- a/ruby/ext/google/protobuf_c/protobuf.h +++ b/ruby/ext/google/protobuf_c/protobuf.h @@ -166,6 +166,8 @@ extern VALUE cBuilder; extern VALUE cError; extern VALUE cParseError; +extern VALUE map_parse_frames; + // We forward-declare all of the Ruby method implementations here because we // sometimes call the methods directly across .c files, rather than going // through Ruby's method dispatching (e.g. during message parse). It's cleaner |