[TECHNICAL] Resource leaks in fragment bindings#4814
[TECHNICAL] Resource leaks in fragment bindings#4814joragua merged 2 commits intoowncloud:masterfrom
Conversation
|
@joragua Here is another small PR. Thanks! |
|
Thanks for the contribution @corevibe555! 🙌🏻 I will check this PR as soon as possible and give you any feedback if necessary. Stay tuned! |
joragua
left a comment
There was a problem hiding this comment.
Nice job @corevibe555! 🍻 Some comments about this PR
-
I'd split this into two separate commits: one for the calens entry (
chore: add calens fileorchore: add changelog) and another one for the implementation (keeping the same name) -
Regarding changelog file: missing PR link at the end of the file. In addition, the name of the file must be the PR id (in this case:
4814) -
After rebasing the branch against
master, there are more fragments that need binding cleanup. Also, there is an extra point in this PR:onDestroy()methods that only handle binding cleanup should be replaced withonDestroyView(). There are three fragments currently clearing the binding inonDestroy():TransfersListFragment,SortBottomSheetFragment, andMainFileListFragment
74d589e to
1c5fc77
Compare
|
@joragua I really appreciated by your feedback :)
|
|
@joragua Would you possibly review this PR when you have a chance? |
joragua
left a comment
There was a problem hiding this comment.
Hi @corevibe555! One more comment and it's ready 😄
I'd split this into two separate commits: one for the calens entry (chore: add calens file or chore: add changelog) and another one for the implementation (keeping the same name)
Regarding the comment above, I’d choose only one of the suggestions for the changelog commit, not both:
chore: add calens filechore: add changelog
Choose one of these! Up to you! 🙌🏻
c93bb1e to
ce0c931
Compare
|
That was my bad. |
joragua
left a comment
There was a problem hiding this comment.
Good job @corevibe555! LGTM! 👍🏻
Could you rebase the branch against master please? We had some issues with CI system and it should be fixed with the latest changes. Once it's done, we can continue with the process 😄
ce0c931 to
9bb7f87
Compare
|
Rebased. |
|
Performed basic checks (auth, transfers, and smoke test with basic features) since this is a technical one with no attached funcionality. It's OK for me 👍 @corevibe555 please rebase again and we will merge. |
9bb7f87 to
6c7608c
Compare
|
Rebase done. Thanks |
|
Nice! Thanks for your engagement 😄 Merging the PR into |
Related Issues
Fixes #4813
Description
Set
_binding = nullinonDestroyView()for 10 fragments that were missing cleanup, preventing memory leaks when fragment instances outlive their views.Affected fragments:
CreateShortcutDialogFragmentFileDetailsFragmentMainEmptyListFragmentRemoveFilesDialogFragmentSharesFragmentSpacesListFragmentCreateSpaceDialogFragmentAddMemberFragmentSpaceMembersFragmentSetSpaceIconDialogFragmentApp:
ReleaseNotesViewModel.ktcreating a newReleaseNote()with String resources (if required)QA