Skip to content

fix: userSession memory leak - WPB-18909#4377

Draft
netbe wants to merge 9 commits intodevelopfrom
fix/WPB-18909-usersession-memoryleak-simple
Draft

fix: userSession memory leak - WPB-18909#4377
netbe wants to merge 9 commits intodevelopfrom
fix/WPB-18909-usersession-memoryleak-simple

Conversation

@netbe
Copy link
Collaborator

@netbe netbe commented Feb 27, 2026

BugWPB-18909 [iOS] ZMUserSession is still retained in memory after logout

Issue

This is an attempt to fix some of memory leaks involving userSession.

  • add XCUITest to check memory after logout
  • add memory label for userSession in DeveloperTools
  • remove unused files

Note: this works on an account without activity, but logging out while receiving or having requests ongoing would still be a problem.

Testing

Before fix:

before_fix.mov

** After fix:**
https://github.com/user-attachments/assets/40de0e70-8c91-4b71-8c4a-ccb0e2d6ce2d


Checklist

  • Title contains a reference JIRA issue number like [WPB-XXX].
  • Description is filled and free of optional paragraphs.
  • Adds/updates automated tests.

UI accessibility checklist

If your PR includes UI changes, please utilize this checklist:

  • Make sure you use the API for UI elements that support large fonts.
  • All colors are taken from WireDesign.ColorTheme or constructed using WireDesign.BaseColorPalette.
  • New UI elements have Accessibility strings for VoiceOver.

@netbe netbe changed the title fix: userSession memory leak - WPB-18909 fix: userSession memory leak - WPB-18909 Feb 27, 2026
@netbe netbe added the WIP label Feb 27, 2026
@sonarqubecloud
Copy link

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.

1 participant