fix mrb_string_shared memory leaks

This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-04-29 07:47:12 +09:00
parent 5077f9ec8b
commit a1df3fdb0c
3 changed files with 42 additions and 34 deletions
+1 -3
View File
@@ -31,10 +31,8 @@ struct RString {
#define RSTRING_LEN(s) (RSTRING(s)->len)
#define RSTRING_CAPA(s) (RSTRING(s)->aux.capa)
#define RSTRING_END(s) (RSTRING(s)->ptr + RSTRING(s)->len)
#define MRB_STR_SHARED 1
#define MRB_STR_STATIC (1<<1)
void mrb_str_decref(mrb_state*, struct mrb_shared_string*);
void mrb_gc_free_str(mrb_state*, struct RString*);
void mrb_str_modify(mrb_state*, struct RString*);
mrb_value mrb_str_literal(mrb_state*, mrb_value);
void mrb_str_concat(mrb_state*, mrb_value, mrb_value);