diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-06-03 15:45:06 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-06-03 15:45:06 +0900 |
| commit | 28b9619bb4c1a560392e0f958a5a5d9cedf12bc7 (patch) | |
| tree | 9169cc5e780d8b9ee1fad74c2d656512f5fcac6c /include | |
| parent | 60e8d80fa722008fc1a2adcc258087702f9e58c6 (diff) | |
| download | mruby-28b9619bb4c1a560392e0f958a5a5d9cedf12bc7.tar.gz mruby-28b9619bb4c1a560392e0f958a5a5d9cedf12bc7.zip | |
should decref shared string body on gc_free
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/string.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mruby/string.h b/include/mruby/string.h index 852c5ff02..91a59d92d 100644 --- a/include/mruby/string.h +++ b/include/mruby/string.h @@ -49,6 +49,7 @@ struct RString { #define RSTRING_END(s) (RSTRING(s)->buf + RSTRING(s)->len) #define MRB_STR_SHARED 256 +void mrb_str_decref(mrb_state*, struct mrb_shared_string*); mrb_value mrb_str_literal(mrb_state*, mrb_value); void mrb_str_concat(mrb_state*, mrb_value, mrb_value); mrb_value mrb_obj_to_str(mrb_state*, mrb_value); |
