Sha256: 244d40f5f5569ac0d8adc72bf8e5723f1d06bd3b75339570f3169ba564cb0954

Contents?: true

Size: 358 Bytes

Versions: 6

Compression:

Stored size: 358 Bytes

Contents

require 'libxml'

# test of bug 13310, clears MEM2

include GC

inner = XML::Node.new('inner')
save = nil
1.times do
  outer = XML::Node.new('outer')
  outer.child = inner
  1.times do
    doc = XML::Document.new
    doc.root = outer
    # Uncomment the following line and it won't crash
    save = doc
  end
  garbage_collect
end
garbage_collect
puts inner

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
libxml-ruby-0.7.0 test/ets_node_gc.rb
libxml-ruby-0.7.0-x86-mswin32-60 test/ets_node_gc.rb
libxml-ruby-0.8.0 test/ets_node_gc.rb
libxml-ruby-0.8.0-x86-mswin32-60 test/ets_node_gc.rb
libxml-ruby-0.8.1 test/ets_node_gc.rb
libxml-ruby-0.8.1-x86-mswin32-60 test/ets_node_gc.rb