]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/ruby/filenames.c
ruby: new notmuch_rb_object_destroy() helper
[notmuch] / bindings / ruby / filenames.c
index 656c58e6f40dfdc87bcbc86b6dd7b2eb2680ecab..0dec19520b59b0b421df5c7a4cb03826e69d235d 100644 (file)
 VALUE
 notmuch_rb_filenames_destroy (VALUE self)
 {
-    notmuch_filenames_t *fnames;
-
-    Data_Get_Notmuch_FileNames (self, fnames);
-
-    notmuch_filenames_destroy (fnames);
-    DATA_PTR (self) = NULL;
+    notmuch_rb_object_destroy (self, &notmuch_rb_filenames_type);
 
     return Qnil;
 }