diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-04-29 07:47:12 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-04-29 07:47:12 +0900 |
| commit | a1df3fdb0c47dd8f4501c85bf1d50a70ef48ea1f (patch) | |
| tree | 3124e0deaebd6faa8832e94ed7a9f30ab566daa9 /include | |
| parent | 5077f9ec8bca9bc5d8c2802d89290415ec1baea0 (diff) | |
| download | mruby-a1df3fdb0c47dd8f4501c85bf1d50a70ef48ea1f.tar.gz mruby-a1df3fdb0c47dd8f4501c85bf1d50a70ef48ea1f.zip | |
fix mrb_string_shared memory leaks
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/string.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/mruby/string.h b/include/mruby/string.h index 3ae427953..26d1344d8 100644 --- a/include/mruby/string.h +++ b/include/mruby/string.h @@ -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); |
