You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,9 +85,9 @@ $ cargo test --features=enterprise
85
85
Couchbase Lite C allows checking if instances of their objects are still alive through the functions `CBL_InstanceCount` & `CBL_DumpInstances`.
86
86
If the `LEAK_CHECK` environment variable is set, we check that the number of instances at the end of each test is 0.
87
87
88
-
If this step fails in one of your pull requests, you should look into the `wrap`/`retain` logic on CBL pointers in the constructor of the Rust structs:
89
-
-`wrap` takes ownership of the pointer, it will not increase the ref count of the `ref` CBL pointer so releasing it (in a `drop`) will destroy the pointer
90
-
-`retain` just references the pointer, it will increase the ref count of CBL pointers so releasing it will not destroy the pointer
88
+
If this step fails in one of your pull requests, you should look into the `take_ownership`/`reference` logic on CBL pointers in the constructor of the Rust structs:
89
+
-`take_ownership` takes ownership of the pointer, it will not increase the ref count of the `ref` CBL pointer so releasing it (in a `drop` for example) will free the pointer
90
+
-`reference` just references the pointer, it will increase the ref count of CBL pointers so releasing it will not free the pointer
91
91
92
92
```shell
93
93
$ LEAK_CHECK=y cargo test --features=enterprise -- --test-threads 1
0 commit comments