ext/h8/ruby_gate.h in h8-0.2.2 vs ext/h8/ruby_gate.h in h8-0.2.3

- old
+ new

@@ -39,20 +39,22 @@ virtual void rb_mark_gc() { rb_gc_mark(ruby_object); } virtual void free() { - AllocatedResource::free(); - persistent().ClearWeak(); - persistent().Reset(); +// printf("RG::FREE(%p)\n", this); delete this; } VALUE rubyObject() const { return ruby_object; } virtual ~RubyGate() { +// puts("~RG()"); + persistent().ClearWeak(); + persistent().Reset(); + // The rest is done by the base classes } Isolate* isolate() const noexcept { return context->getIsolate(); }