]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/ruby/threads.c
ruby: new notmuch_rb_object_destroy() helper
[notmuch] / bindings / ruby / threads.c
index d809b571d3335ad30d817ed0daeed03bec0133b8..50280260a4d3aa9576f4d09c7d9528ed6be6539c 100644 (file)
 VALUE
 notmuch_rb_threads_destroy (VALUE self)
 {
-    notmuch_threads_t *threads;
-
-    Data_Get_Notmuch_Threads (self, threads);
-
-    notmuch_threads_destroy (threads);
-    DATA_PTR (self) = NULL;
+    notmuch_rb_object_destroy (self, &notmuch_rb_threads_type);
 
     return Qnil;
 }