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 | |
| 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
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | ext/syck/rubyext.c | 6 |
2 files changed, 10 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Tue Jul 15 03:30:41 2003 why the lucky stiff <ruby-cvs@whytheluckystiff.net> + + * 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 <usa@ruby-lang.org> * struct.c (struct_entry): add prototype to avoid VC++ warnings. 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 ); + } } /* |
