summaryrefslogtreecommitdiff
path: root/ext/syck
diff options
context:
space:
mode:
authorwhy <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-14 20:35:07 +0000
committerwhy <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-14 20:35:07 +0000
commitbdfce148a7f85a14e24c6365e72ba59241c4be9f (patch)
treec52ebbc06fcf4f0eb8d626c5fd6ab2a597a4c2e5 /ext/syck
parent40f7baddde8d2f97447b8b49cab71dd7601c2fae (diff)
* ext/syck/rubyext.c (syck_mark_emitter): forgot to rb_gc_mark the
outgoing IO object. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syck')
-rw-r--r--ext/syck/rubyext.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/syck/rubyext.c b/ext/syck/rubyext.c
index 6a26cd4..854762c 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 );
+ }
}
/*