mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
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:
parent
6713bb48d6
commit
3f840271a2
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue