Skip to content

Commit

Permalink
Update TROUBLESHOOT.md
Browse files Browse the repository at this point in the history
  • Loading branch information
polina-c authored Aug 27, 2024
1 parent d65316b commit 89515cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/leak_tracking/TROUBLESHOOT.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Follow the rules to avoid/fix notGCed and notDisposed leaks:
release the references before the owner disposed the object.

**Flutter specific rules:**
1. If a widget creates disposables, it should be stateful, to be able to dispose them.
1. If a widget creates disposables (loke controller), it should be stateful, to be able to dispose the disposables.

**Test specific rules:**
1. If your test creates a disposable object, it should dispose it in `tearDown`, so that test failure does not result in a leak:
Expand Down

0 comments on commit 89515cf

Please sign in to comment.