From bdfce148a7f85a14e24c6365e72ba59241c4be9f Mon Sep 17 00:00:00 2001 From: why Date: Mon, 14 Jul 2003 20:35:07 +0000 Subject: * 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 --- ChangeLog | 5 +++++ ext/syck/rubyext.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b40b7b2a3a..60d5214dde 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Jul 15 03:30:41 2003 why the lucky stiff + + * ext/syck/rubyext.c (syck_mark_emitter): forgot to rb_gc_mark the + outgoing IO object. + Sat Jul 12 17:01:28 2003 NAKAMURA Usaku * struct.c (struct_entry): add prototype to avoid VC++ warnings. diff --git a/ext/syck/rubyext.c b/ext/syck/rubyext.c index 6a26cd45f8..854762c591 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 ); + } } /* -- cgit v1.2.3