ICU-8432 fix bad delete of arrays

X-SVN-Rev: 29710
This commit is contained in:
Doug Felt 2011-03-30 20:52:05 +00:00
parent 9a44c7e691
commit 8f82354952

View File

@ -83,8 +83,8 @@ PluralRules::PluralRules(const PluralRules& other)
PluralRules::~PluralRules() {
delete mRules;
delete mParser;
delete mSamples;
delete mSampleInfo;
delete [] mSamples;
delete [] mSampleInfo;
}
PluralRules*
@ -105,10 +105,10 @@ PluralRules::operator=(const PluralRules& other) {
delete mParser;
mParser = new RuleParser();
delete mSamples;
delete [] mSamples;
mSamples = NULL;
delete mSampleInfo;
delete [] mSampleInfo;
mSampleInfo = NULL;
mSampleInfoCount = 0;
}