]> git.notmuchmail.org Git - notmuch/blobdiff - message.cc
Add destroy functions for results, message, and tags.
[notmuch] / message.cc
index cc157c8b010f3f5aaa0c0f9675639da12d10e1ec..ca4a16c79bc941c3be27299af8615fd85f90ccf0 100644 (file)
@@ -115,6 +115,12 @@ notmuch_message_get_tags (notmuch_message_t *message)
     return tags;
 }
 
+void
+notmuch_message_destroy (notmuch_message_t *message)
+{
+    talloc_free (message);
+}
+
 notmuch_bool_t
 notmuch_tags_has_more (notmuch_tags_t *tags)
 {
@@ -141,3 +147,9 @@ notmuch_tags_advance (notmuch_tags_t *tags)
 {
     tags->iterator++;
 }
+
+void
+notmuch_tags_destroy (notmuch_tags_t *tags)
+{
+    talloc_free (tags);
+}