Fix nil check

This commit is contained in:
Kitaiti Makoto 2026-05-28 23:00:46 +09:00
parent 3a8e4279b7
commit e379e85b91
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ static void
ruby_whisper_parakeet_model_mark(void *p)
{
ruby_whisper_parakeet_model *rwpm = (ruby_whisper_parakeet_model *)p;
if (rwpm->context) {
if (!NIL_P(rwpm->context)) {
rb_gc_mark(rwpm->context);
}
}