mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 17:29:32 +01:00
Fix possible RxStore memory leak.
This commit is contained in:
@@ -29,5 +29,6 @@ class WhoCanSeeMyPhoneNumberViewModel : ViewModel() {
|
||||
|
||||
override fun onCleared() {
|
||||
disposables.clear()
|
||||
store.dispose()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,6 +65,7 @@ class UsernameEditViewModel extends ViewModel {
|
||||
protected void onCleared() {
|
||||
super.onCleared();
|
||||
disposables.clear();
|
||||
uiState.dispose();
|
||||
}
|
||||
|
||||
void onNicknameUpdated(@NonNull String nickname) {
|
||||
|
||||
Reference in New Issue
Block a user