]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/ruby/query.c
ruby: new notmuch_rb_object_destroy() helper
[notmuch] / bindings / ruby / query.c
index 79727d6a6aeb5dbebf5e977365244e6fd1406826..3ec98c6c1d80db12feb7dd66c8b5e2fa3201a56e 100644 (file)
 VALUE
 notmuch_rb_query_destroy (VALUE self)
 {
-    notmuch_query_t *query;
-
-    Data_Get_Notmuch_Query (self, query);
-
-    notmuch_query_destroy (query);
-    DATA_PTR (self) = NULL;
+    notmuch_rb_object_destroy (self, &notmuch_rb_query_type);
 
     return Qnil;
 }