diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-31 02:43:17 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-31 02:43:17 +0000 |
commit | 88faf60703620d6b4afca59b3ec589a92319f566 (patch) | |
tree | 8e78726ce23bd5d674a1548b115af2994754aa91 /ext/strscan | |
parent | 51ab4e3a32d3084ec50535259e40b025e8cf0497 (diff) | |
download | ruby-88faf60703620d6b4afca59b3ec589a92319f566.tar.gz ruby-88faf60703620d6b4afca59b3ec589a92319f566.tar.xz ruby-88faf60703620d6b4afca59b3ec589a92319f566.zip |
* ext/strscan/strscan.c (strscan_do_scan): fix usecnt decrement.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/strscan')
-rw-r--r-- | ext/strscan/strscan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/strscan/strscan.c b/ext/strscan/strscan.c index 6f05ec366..6b0d8e7c5 100644 --- a/ext/strscan/strscan.c +++ b/ext/strscan/strscan.c @@ -431,7 +431,7 @@ strscan_do_scan(VALUE self, VALUE regex, int succptr, int getstr, int headonly) (UChar* )CURPTR(p), (UChar* )(CURPTR(p) + S_RESTLEN(p)), &(p->regs), ONIG_OPTION_NONE); } - if (!tmpreg) RREGEXP(re)->usecnt--; + if (!tmpreg) RREGEXP(regex)->usecnt--; if (tmpreg) { if (RREGEXP(regex)->usecnt) { onig_free(re); |