summaryrefslogtreecommitdiff
path: root/src/tag/Tag.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-12-03 13:18:53 +0100
committerMax Kellermann <max@duempel.org>2013-12-03 13:19:45 +0100
commitd694150372408cd80b89a2e27a88f91b5f856b67 (patch)
tree71be7d1266a8245ace45ba2b5d460aacce0b1d2b /src/tag/Tag.hxx
parent4ab586aaf11c8333ac6a245adfb660dca73fd5cd (diff)
Tag: destructor calls Clear()
Eliminate duplicate code.
Diffstat (limited to 'src/tag/Tag.hxx')
-rw-r--r--src/tag/Tag.hxx4
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;