Trail-Sense icon indicating copy to clipboard operation
Trail-Sense copied to clipboard

Fix memory leaks

Open kylecorry31 opened this issue 2 years ago • 0 comments

Use LeakCanary to detect leaks and fix them

  • [ ] Quick action buttons retain references to views (dispose on view destroyed)
  • [x] Sighting compass retains references to views (dispose on view destroyed)
  • [ ] Beacon layer retains references to canvas (dispose on finalize / destroy)
  • [ ] Beacon compass layer retains references to canvas (dispose on finalize / destroy)
  • [x] Main activity retained via context references (switch to app context)
  • [x] Update timer should be destroyed when onDestroy is called

kylecorry31 avatar Jul 25 '23 22:07 kylecorry31