]> git.cworth.org Git - notmuch/commitdiff
ruby: add missing Data_Get_Notmuch helpers
authorFelipe Contreras <felipe.contreras@gmail.com>
Tue, 4 May 2021 08:17:40 +0000 (03:17 -0500)
committerDavid Bremner <david@tethera.net>
Wed, 12 May 2021 22:13:02 +0000 (19:13 -0300)
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 <felipe.contreras@gmail.com>
bindings/ruby/directory.c
bindings/ruby/threads.c

index 0f37b3910042426219ae7cdf7137ec1b017cfb11..fe5fc46d1145328676d574661dc0089a267cf0e3 100644 (file)
@@ -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;
index ed403a8f1f3db30e88d8fd030991ae1b62b1c9e6..5885f5651ceeb100b3011557d462c8bdba29d586 100644 (file)
@@ -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;