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:
Wolfgang Lux 2016-07-06 08:08:51 +00:00
parent 1ed4da510b
commit 62b2fb95b8
2 changed files with 7 additions and 1 deletions

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