Throughout the docs, tell users in what order to destroy objects. One example is this: destroy a mongoc_cursor_t before the mongoc_client_t whence it came. I think it's safe in all cases to destroy objects in the opposite order they were created. Whatever the rule is, guide users.
- duplicates
-
CDRIVER-1980 Incorrect lifecycle documentation needs review
- Closed
- related to
-
CDRIVER-899 Segfault in /Cursor/get_host
- Closed