More memory cleanups

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2018-08-17 00:06:19 +02:00
parent 74691aa278
commit b7a47b3972
2 changed files with 1 additions and 1 deletions

View File

@ -297,7 +297,6 @@ public class CallNotificationController extends BaseController {
if (handler == null) {
handler = new Handler();
ncApi = ApplicationWideApiHolder.getInstance().getNcApiInstanceForAccountId(userBeingCalled.getId(), null);
}

View File

@ -469,6 +469,7 @@ public class ChatController extends BaseController implements MessagesListAdapte
@Override
public void onDestroy() {
super.onDestroy();
adapter = null;
inChat = false;
ApplicationWideCurrentRoomHolder.getInstance().clear();
leaveRoom();