diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/bigdecimal/bigdecimal.c | 1 | ||||
-rw-r--r-- | ext/objspace/objspace.c | 1 | ||||
-rw-r--r-- | ext/stringio/stringio.c | 1 | ||||
-rw-r--r-- | ext/strscan/strscan.c | 3 |
4 files changed, 5 insertions, 1 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c index 31e9be984f..e82ac38189 100644 --- a/ext/bigdecimal/bigdecimal.c +++ b/ext/bigdecimal/bigdecimal.c @@ -146,6 +146,7 @@ BigDecimal_memsize(const void *ptr) static const rb_data_type_t BigDecimal_data_type = { "BigDecimal", { 0, BigDecimal_delete, BigDecimal_memsize, }, + NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY }; static inline int diff --git a/ext/objspace/objspace.c b/ext/objspace/objspace.c index 2e7bd07029..b0df466ee3 100644 --- a/ext/objspace/objspace.c +++ b/ext/objspace/objspace.c @@ -643,6 +643,7 @@ iow_size(const void *ptr) static const rb_data_type_t iow_data_type = { "ObjectSpace::InternalObjectWrapper", {iow_mark, 0, iow_size,}, + NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY }; static VALUE rb_mInternalObjectWrapper; diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c index ebf678bac8..3fef619de6 100644 --- a/ext/stringio/stringio.c +++ b/ext/stringio/stringio.c @@ -78,6 +78,7 @@ static const rb_data_type_t strio_data_type = { strio_free, strio_memsize, }, + NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY }; #define check_strio(self) ((struct StringIO*)rb_check_typeddata((self), &strio_data_type)) diff --git a/ext/strscan/strscan.c b/ext/strscan/strscan.c index 65b5ca7627..f020ba780d 100644 --- a/ext/strscan/strscan.c +++ b/ext/strscan/strscan.c @@ -190,7 +190,8 @@ strscan_memsize(const void *ptr) static const rb_data_type_t strscanner_type = { "StringScanner", - {strscan_mark, strscan_free, strscan_memsize} + {strscan_mark, strscan_free, strscan_memsize}, + NULL, NULL, RUBY_TYPED_FREE_IMMEDIATELY }; static VALUE |