mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
73dc32c670
some routines need to refer mruby objects (e.g. callbacks), in that case you have to protect your objects from garbage collection. the new functions mrb_gc_register() keeps those objects from GC. you have to remove your objects using mrb_gc_unregister() when your C routines use mruby objects any longer, otherwise objects will leak.