Skip to content

Tweaks 'n fixes for the leak detector - #439

Merged
maatheusgois-dd merged 1 commit into
DebugSwift:mainfrom
Janneman84:main
Aug 15, 2026
Merged

maatheusgois-dd merged 1 commit into
DebugSwift:mainfrom
Janneman84:main

Conversation

@Janneman84

Copy link
Copy Markdown
Contributor

I just released LeakedViewControllerDetector 1.4.0. I applied the same fixes here, where applicable. I fixed some specific issues here while I was at it.

  • added fallbacks in case super.viewDidLoad() was not called

  • better system for preventing double/simultaneous checking

  • fixed the deallocator being kept alive while waiting for the delay

  • added a check to UILayoutContainerView check to prevent getting certain unnecessary warnings

  • tweaked the warning message string (mainly for navigation/tabcontroller)

  • after a leaked VC deinits the leak detector is triggered again to check if all children are gone too

  • rewrote deallocator deinit code because it was totally broken, causing deinit triggers to fail, deinits now properly show up again in the leaks list with the green icon

  • updated outdated README info

Type of change

  • Tweaks
  • Fixes
  • Feature
  • Refactor
  • Docs
  • CI/CD

Test plan

  • Unit tests updated
  • Manual testing completed
  • CI passing

Manual test steps

  • Too many to explain here

Checklist

  • I reviewed my own changes
  • I updated docs when needed
  • I considered backward compatibility

- added fallbacks in case super.viewDidLoad() was not called
- better system for preventing double/simultaneous checking
- fixed the deallocator being kept alive while waiting for the delay
- added a check to UILayoutContainerView check to prevent getting certain unnecessary warnings
- tweaked the warning message string (mainly for navigation/tabcontroller)
- after a leaked VC deinits the leak detector is triggered again to check if all children are gone too
- rewrote deallocator deinit code because it was totally broken, causing deinit triggers to fail, deinits now properly show up again in the leaks list with the green icon

- updated outdated README info
@maatheusgois-dd
maatheusgois-dd merged commit be48827 into DebugSwift:main Aug 15, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants