Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieu@hoang.co.uk>2014-02-26 14:43:37 +0400
committerHieu Hoang <hieu@hoang.co.uk>2014-02-26 14:43:37 +0400
commitb48f410beefb51c6b3564acd89581da475d02f86 (patch)
tree5d249a8344a2691e96627052926944665adbee32 /mert/FeatureStats.cpp
parentc48d8b5e31015ccabe0590a993b17a15fa088d56 (diff)
don't check object pointer before deleting /Markus Elfring
Diffstat (limited to 'mert/FeatureStats.cpp')
-rw-r--r--mert/FeatureStats.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/mert/FeatureStats.cpp b/mert/FeatureStats.cpp
index aa32e1fef..5a12be70a 100644
--- a/mert/FeatureStats.cpp
+++ b/mert/FeatureStats.cpp
@@ -181,10 +181,8 @@ FeatureStats::FeatureStats(const size_t size)
FeatureStats::~FeatureStats()
{
- if (m_array) {
- delete [] m_array;
- m_array = NULL;
- }
+ delete [] m_array;
+ m_array = NULL;
}
void FeatureStats::Copy(const FeatureStats &stats)