X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=bindings%2Fruby%2Fquery.c;fp=bindings%2Fruby%2Fquery.c;h=3ec98c6c1d80db12feb7dd66c8b5e2fa3201a56e;hp=79727d6a6aeb5dbebf5e977365244e6fd1406826;hb=5f49e3421f5d1f98951b55dd5ba106c2a106aba7;hpb=9574fb60991fa81799fbd1d26d41693ca2794e6b diff --git a/bindings/ruby/query.c b/bindings/ruby/query.c index 79727d6a..3ec98c6c 100644 --- a/bindings/ruby/query.c +++ b/bindings/ruby/query.c @@ -28,12 +28,7 @@ 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, ¬much_rb_query_type); return Qnil; }