]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/ruby/tags.c
ruby: new notmuch_rb_object_destroy() helper
[notmuch] / bindings / ruby / tags.c
index db8b4cfc86f0b3eaa818ce0d7876862158826862..2af85e36598220f1cb93e806a8080ed2c3a3b862 100644 (file)
 VALUE
 notmuch_rb_tags_destroy (VALUE self)
 {
-    notmuch_tags_t *tags;
-
-    Data_Get_Notmuch_Tags (self, tags);
-
-    notmuch_tags_destroy (tags);
-    DATA_PTR (self) = NULL;
+    notmuch_rb_object_destroy (self, &notmuch_rb_tags_type);
 
     return Qnil;
 }