Order the steps
Put these steps for finding a screen leak in order.
- Follow the retain path to the strong reference
- Open and close the screen several times
- Find extra instances of the screen or its view model
- Pause in the Memory Graph debugger
- Fix it and repeat the same steps to confirm
Hint 1 of 1
Start by reproducing the problem.
Choose an answer, then open Show answer below to check it.
Show answer
Answer: B D C A E
- Open and close the screen several times Repeating the action makes leaked instances pile up so they stand out.
- Pause in the Memory Graph debugger The graph shows every live object at that moment.
- Find extra instances of the screen or its view model More instances than expected means something keeps them alive.
- Follow the retain path to the strong reference The path shows exactly which reference to make weak.
- Fix it and repeat the same steps to confirm Verifying the same way proves the fix worked.