diff options
author | why <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-14 20:35:07 +0000 |
---|---|---|
committer | why <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-14 20:35:07 +0000 |
commit | cccbc18533cf471b2ce777954af83adac3fe6ee3 (patch) | |
tree | c52ebbc06fcf4f0eb8d626c5fd6ab2a597a4c2e5 /ext/syck | |
parent | ae1d6887f9a568159b16af7ffb499096aa330245 (diff) | |
download | ruby-cccbc18533cf471b2ce777954af83adac3fe6ee3.tar.gz ruby-cccbc18533cf471b2ce777954af83adac3fe6ee3.tar.xz ruby-cccbc18533cf471b2ce777954af83adac3fe6ee3.zip |
* ext/syck/rubyext.c (syck_mark_emitter): forgot to rb_gc_mark the
outgoing IO object.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syck')
-rw-r--r-- | ext/syck/rubyext.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/syck/rubyext.c b/ext/syck/rubyext.c index 6a26cd45f..854762c59 100644 --- a/ext/syck/rubyext.c +++ b/ext/syck/rubyext.c @@ -1035,7 +1035,11 @@ static void syck_mark_emitter(emitter) SyckEmitter *emitter; { - rb_gc_mark(emitter->ignore_id); + rb_gc_mark( emitter->ignore_id ); + if ( emitter->bonus != NULL ) + { + rb_gc_mark( (VALUE)emitter->bonus ); + } } /* |