diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2014-02-26 14:43:37 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2014-02-26 14:43:37 +0400 |
commit | b48f410beefb51c6b3564acd89581da475d02f86 (patch) | |
tree | 5d249a8344a2691e96627052926944665adbee32 /mert/FeatureStats.cpp | |
parent | c48d8b5e31015ccabe0590a993b17a15fa088d56 (diff) |
don't check object pointer before deleting /Markus Elfring
Diffstat (limited to 'mert/FeatureStats.cpp')
-rw-r--r-- | mert/FeatureStats.cpp | 6 |
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) |