ICU-3476 fix memory allocation problems.

X-SVN-Rev: 14211
This commit is contained in:
Eric Mader 2003-12-23 18:10:11 +00:00
parent dd102111ec
commit 078c13a236
3 changed files with 10 additions and 2 deletions

View File

@ -111,7 +111,7 @@ RegexMatcher::RegexMatcher(const UnicodeString &regexp,
RegexMatcher::~RegexMatcher() {
delete fStack;
if (fData != fSmallData) {
delete fData;
uprv_free(fData);
fData = NULL;
}
if (fPatternOwned) {

View File

@ -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);

View File

@ -25,7 +25,7 @@ U_NAMESPACE_BEGIN
*
* @see LECharMapper
*/
class DefaultCharMapper : public LECharMapper
class DefaultCharMapper : public UMemory, public LECharMapper
{
private:
le_bool fFilterControls;