summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlly Betts <olly@survex.com>2023-04-19 12:57:20 +1200
committerOlly Betts <olly@survex.com>2023-04-19 12:57:20 +1200
commit7df0d05e875bd96d0e3a64e2fe3c968a5f160375 (patch)
tree19e95f84610dda63862f042d773a4d66cc87705c
parent1ec05d04f700683e69862bf1c0a27f0802ee4f64 (diff)
parent41203cbb9d68485c5fff809df4afa81c7cc61942 (diff)
downloadswig-7df0d05e875bd96d0e3a64e2fe3c968a5f160375.tar.gz
Merge branch 'fix-undefining-allocator'
-rw-r--r--CHANGES.current4
-rw-r--r--Lib/ruby/rubyrun.swg2
2 files changed, 5 insertions, 1 deletions
diff --git a/CHANGES.current b/CHANGES.current
index 458b1b91e..41dbcf559 100644
--- a/CHANGES.current
+++ b/CHANGES.current
@@ -7,6 +7,10 @@ the issue number to the end of the URL: https://github.com/swig/swig/issues/
Version 4.2.0 (in progress)
===========================
+2023-04-19: wildmaples
+ [Ruby] #2527 Fix "undefining the allocator of T_DATA" warning seen
+ with Ruby 3.2.
+
2023-04-18: davidcl
[Scilab] #894 extract values with ":" for typemap (int* IN, int IN_SIZE)
diff --git a/Lib/ruby/rubyrun.swg b/Lib/ruby/rubyrun.swg
index 6cac4626a..885292481 100644
--- a/Lib/ruby/rubyrun.swg
+++ b/Lib/ruby/rubyrun.swg
@@ -157,7 +157,7 @@ SWIG_Ruby_define_class(swig_type_info *type)
_cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject);
rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new");
}
- rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
+ rb_undef_alloc_func(rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer));
free((void *) klass_name);
}