summaryrefslogtreecommitdiff
path: root/src/IcyMetaDataParser.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/IcyMetaDataParser.cxx')
-rw-r--r--src/IcyMetaDataParser.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/IcyMetaDataParser.cxx b/src/IcyMetaDataParser.cxx
index e39a7041c..0fe26afa3 100644
--- a/src/IcyMetaDataParser.cxx
+++ b/src/IcyMetaDataParser.cxx
@@ -39,7 +39,7 @@ IcyMetaDataParser::Reset() noexcept
if (data_rest == 0 && meta_size > 0)
delete[] meta_data;
- delete tag;
+ tag.reset();
data_rest = data_size;
meta_size = 0;
@@ -209,9 +209,7 @@ IcyMetaDataParser::Meta(const void *data, size_t length) noexcept
if (meta_position == meta_size) {
/* parse */
- delete tag;
-
- tag = icy_parse_tag(meta_data, meta_data + meta_size).release();
+ tag = icy_parse_tag(meta_data, meta_data + meta_size);
delete[] meta_data;
/* change back to normal data mode */