diff options
author | Scott Wheeler <scott@directededge.com> | 2015-05-18 21:40:11 +0200 |
---|---|---|
committer | Scott Wheeler <scott@directededge.com> | 2015-05-18 21:40:21 +0200 |
commit | 089e44f3db0bac39ff5cae85c19b600ad3a9a4ad (patch) | |
tree | 2eccc20e5e232a61ab106e848160b5fa9a5a5b20 /taglib/asf | |
parent | bd3c4dc1b29f2a0052a28db1ecef84632f779948 (diff) |
Remove unnecessary checks for null before delete
Closes #343
Diffstat (limited to 'taglib/asf')
-rw-r--r-- | taglib/asf/asfproperties.cpp | 3 | ||||
-rw-r--r-- | taglib/asf/asftag.cpp | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/taglib/asf/asfproperties.cpp b/taglib/asf/asfproperties.cpp index b82c131a..acec09d2 100644 --- a/taglib/asf/asfproperties.cpp +++ b/taglib/asf/asfproperties.cpp @@ -51,8 +51,7 @@ ASF::Properties::Properties() : AudioProperties(AudioProperties::Average) ASF::Properties::~Properties() { - if(d) - delete d; + delete d; } int ASF::Properties::length() const diff --git a/taglib/asf/asftag.cpp b/taglib/asf/asftag.cpp index 9317bc6a..13d92b5f 100644 --- a/taglib/asf/asftag.cpp +++ b/taglib/asf/asftag.cpp @@ -47,8 +47,7 @@ ASF::Tag::Tag() ASF::Tag::~Tag() { - if(d) - delete d; + delete d; } String ASF::Tag::title() const |