Correct RubyGate deallocation