zlib-gc-fix.diff 319 B

123456789101112
  1. diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c
  2. index b87e691..5f701ab 100644
  3. --- a/ext/zlib/zlib.c
  4. +++ b/ext/zlib/zlib.c
  5. @@ -610,6 +610,7 @@ zstream_append_input(z, src, len)
  6. }
  7. #define zstream_append_input2(z,v)\
  8. + RB_GC_GUARD(v),\
  9. zstream_append_input((z), RSTRING(v)->ptr, RSTRING(v)->len)
  10. static void