summaryrefslogtreecommitdiff
path: root/test/fiddle/test_c_union_entity.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/fiddle/test_c_union_entity.rb')
-rw-r--r--test/fiddle/test_c_union_entity.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/fiddle/test_c_union_entity.rb b/test/fiddle/test_c_union_entity.rb
index 5727a20e3b..9310084733 100644
--- a/test/fiddle/test_c_union_entity.rb
+++ b/test/fiddle/test_c_union_entity.rb
@@ -21,7 +21,7 @@ module Fiddle
end
def test_set_ctypes
- union = CUnionEntity.malloc [TYPE_INT, TYPE_LONG]
+ union = CUnionEntity.malloc [TYPE_INT, TYPE_LONG], Fiddle::RUBY_FREE
union.assign_names %w[int long]
# this test is roundabout because the stored ctypes are not accessible