diff options
| author | Felipe Contreras <felipe.contreras@gmail.com> | 2021-05-17 14:39:15 -0500 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-07-18 17:08:53 -0300 |
| commit | 1a7f9fe055fb40b9646bb8efac107601009723bd (patch) | |
| tree | d404fe8d5c7fe92c18db56f63a2a53ab1ea6d76f /bindings/ruby/database.c | |
| parent | 02b162116079a0b2e35823e5590a82056d22c8af (diff) | |
ruby: enable garbage collection using talloc
We basically steal all the objects from their notmuch parents, therefore
they are completely under Ruby's gc control.
The order at which these objects are freed does not matter any more,
because destroying the database does not destroy all the children
objects, since they belong to Ruby now.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Diffstat (limited to 'bindings/ruby/database.c')
| -rw-r--r-- | bindings/ruby/database.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bindings/ruby/database.c b/bindings/ruby/database.c index 0159aaac..1cf4e4e2 100644 --- a/bindings/ruby/database.c +++ b/bindings/ruby/database.c @@ -81,7 +81,7 @@ notmuch_rb_database_initialize (int argc, VALUE *argv, VALUE self) ret = notmuch_database_open (path, mode, &database); notmuch_rb_status_raise (ret); - DATA_PTR (self) = notmuch_rb_object_create (database); + DATA_PTR (self) = notmuch_rb_object_create (database, "notmuch_rb_database"); return self; } |
