pluskid-rmmseg-cpp 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/ext/rmmseg/rmmseg.cpp +2 -2
  2. metadata +1 -1
@@ -96,11 +96,11 @@ extern "C" {
96
96
  {
97
97
  Token *tk = ALLOC(Token);
98
98
  int start = t.text-base;
99
- tk->text = rb_str_new(t.text, t.length);
100
99
 
101
100
  // This is necessary, see
102
101
  // http://pluskid.lifegoo.com/?p=348
103
- rb_gc_mark(tk->text);
102
+ volatile VALUE text = rb_str_new(t.text, t.length);
103
+ tk->text = text;
104
104
 
105
105
  tk->start = INT2FIX(start);
106
106
  tk->end = INT2FIX(start + t.length);
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pluskid-rmmseg-cpp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - pluskid