should decref shared string body on gc_free

This commit is contained in:
Yukihiro Matsumoto
2012-06-03 15:45:06 +09:00
parent 60e8d80fa7
commit 28b9619bb4
3 changed files with 15 additions and 6 deletions
+1
View File
@@ -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);