Fix bug where a UText structure owned by the icu library is incorrectly

closed, which was causing a crash when -pattern is called more than once
for the same NSRegularExpression.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39960 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
wlux 2016-07-06 08:08:51 +00:00
parent 6713bb48d6
commit 3f840271a2
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2016-07-06 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSRegularExpression.m (-pattern): Fix bug where a UText
structure owned by the icu library is incorrectly closed, which
was causing a crash when -pattern is called more than once for the
same NSRegularExpression.
2016-07-02 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSKeyValueObserving.m: Remove some unnecessary locking

View file

@ -183,7 +183,6 @@ NSRegularExpressionOptionsToURegexpFlags(NSRegularExpressionOptions opts)
}
str = [GSUTextString new];
utext_clone(&str->txt, t, FALSE, TRUE, &s);
utext_close(t);
return [str autorelease];
}
#else