ICU-3476 fix memory allocation problems.
X-SVN-Rev: 14211
This commit is contained in:
parent
dd102111ec
commit
078c13a236
@ -111,7 +111,7 @@ RegexMatcher::RegexMatcher(const UnicodeString ®exp,
|
||||
RegexMatcher::~RegexMatcher() {
|
||||
delete fStack;
|
||||
if (fData != fSmallData) {
|
||||
delete fData;
|
||||
uprv_free(fData);
|
||||
fData = NULL;
|
||||
}
|
||||
if (fPatternOwned) {
|
||||
|
@ -35,6 +35,8 @@ private:
|
||||
|
||||
public:
|
||||
CharSubstitutionFilter(const LEFontInstance *fontInstance);
|
||||
~CharSubstitutionFilter();
|
||||
|
||||
le_bool accept(LEGlyphID glyph) const;
|
||||
};
|
||||
|
||||
@ -44,6 +46,12 @@ CharSubstitutionFilter::CharSubstitutionFilter(const LEFontInstance *fontInstanc
|
||||
// nothing to do
|
||||
}
|
||||
|
||||
CharSubstitutionFilter::~CharSubstitutionFilter()
|
||||
{
|
||||
// nothing to do
|
||||
}
|
||||
|
||||
|
||||
le_bool CharSubstitutionFilter::accept(LEGlyphID glyph) const
|
||||
{
|
||||
return fFontInstance->canDisplay((LEUnicode) glyph);
|
||||
|
@ -25,7 +25,7 @@ U_NAMESPACE_BEGIN
|
||||
*
|
||||
* @see LECharMapper
|
||||
*/
|
||||
class DefaultCharMapper : public LECharMapper
|
||||
class DefaultCharMapper : public UMemory, public LECharMapper
|
||||
{
|
||||
private:
|
||||
le_bool fFilterControls;
|
||||
|
Loading…
Reference in New Issue
Block a user