Skip to content

Commit

Permalink
Update TROUBLESHOOT.md
Browse files Browse the repository at this point in the history
  • Loading branch information
polina-c committed Jul 28, 2023
1 parent 362c3fb commit 3a66a35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/TROUBLESHOOT.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Follow the rules to avoid/fix notGCed and notDisosed leaks:

1. **Ownership**. Every disposable object should have clear owner that manages its lifecycle.
2. **Disposal**. The owner should invoke the object's `dispose`.
3. **Release**. The owner should null referernce to the disposed object, if `dispose` is invoked earlier than oner's disposal.
3. **Release**. The owner should null referernce to the disposed object, if its `dispose` happens earlier than owner's disposal.
4. **Weak referencing**. Non-owners should either link the object with WeakReference, or make sure to
release the references becore the owner disposed the object.

Expand Down

0 comments on commit 3a66a35

Please sign in to comment.