Sha256: bb8b59c4d4af2f97d23560242160b364aa6d5d851444db3ce9fa307f47a8ddb3

Contents?: true

Size: 360 Bytes

Versions: 4

Compression:

Stored size: 360 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

4 entries across 4 versions & 1 rubygems

Version Path
libxml-ruby-0.5.3 test/ets_node_gc.rb
libxml-ruby-0.5.4 test/ets_node_gc.rb
libxml-ruby-0.6.0 test/ets_node_gc.rb
libxml-ruby-0.6.0-x86-mswin32-60 test/ets_node_gc.rb