diff options
author | Max Kellermann <max@duempel.org> | 2013-12-03 13:18:53 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-12-03 13:19:45 +0100 |
commit | d694150372408cd80b89a2e27a88f91b5f856b67 (patch) | |
tree | 71be7d1266a8245ace45ba2b5d460aacce0b1d2b /src/tag/Tag.hxx | |
parent | 4ab586aaf11c8333ac6a245adfb660dca73fd5cd (diff) |
Tag: destructor calls Clear()
Eliminate duplicate code.
Diffstat (limited to 'src/tag/Tag.hxx')
-rw-r--r-- | src/tag/Tag.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tag/Tag.hxx b/src/tag/Tag.hxx index 457a889bd..480115c5b 100644 --- a/src/tag/Tag.hxx +++ b/src/tag/Tag.hxx @@ -71,7 +71,9 @@ struct Tag { /** * Free the tag object and all its items. */ - ~Tag(); + ~Tag() { + Clear(); + } Tag &operator=(const Tag &other) = delete; |