From: Felipe Contreras Date: Tue, 4 May 2021 08:17:40 +0000 (-0500) Subject: ruby: add missing Data_Get_Notmuch helpers X-Git-Tag: archive/debian/0.33_rc0-1~111 X-Git-Url: https://git.cworth.org/git?p=notmuch;a=commitdiff_plain;h=75738758f91ff2f199d598de17100dfb34cf5fe5 ruby: add missing Data_Get_Notmuch helpers Apparently commit 5c9e3855 (ruby: Don't barf if an object is destroyed more than once, 2010-05-26) missed these two. Signed-off-by: Felipe Contreras --- diff --git a/bindings/ruby/directory.c b/bindings/ruby/directory.c index 0f37b391..fe5fc46d 100644 --- a/bindings/ruby/directory.c +++ b/bindings/ruby/directory.c @@ -30,7 +30,7 @@ notmuch_rb_directory_destroy (VALUE self) { notmuch_directory_t *dir; - Data_Get_Struct (self, notmuch_directory_t, dir); + Data_Get_Notmuch_Directory (self, dir); notmuch_directory_destroy (dir); DATA_PTR (self) = NULL; diff --git a/bindings/ruby/threads.c b/bindings/ruby/threads.c index ed403a8f..5885f565 100644 --- a/bindings/ruby/threads.c +++ b/bindings/ruby/threads.c @@ -30,7 +30,7 @@ notmuch_rb_threads_destroy (VALUE self) { notmuch_threads_t *threads; - Data_Get_Struct (self, notmuch_threads_t, threads); + Data_Get_Notmuch_Threads (self, threads); notmuch_threads_destroy (threads); DATA_PTR (self) = NULL;