From 84c89d7530b0a18927924c5d75a5b51aa706cd27 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Mon, 5 Dec 2022 17:29:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=A7=82=E4=BC=97LiveRoomVie?= =?UTF-8?q?wHolder=E5=BC=BA=E5=BC=95=E7=94=A8Context=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E7=9A=84=E5=86=85=E5=AD=98=E6=B3=84=E6=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java | 2 +- .../main/java/com/yunbao/live/views/PortraitLiveManager.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java index 962a1e5e0..d8b52023f 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java @@ -2156,7 +2156,6 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis /** * 接口整合守护展示,用户端使用 - * */ public void setGuardIcon(GuardUserModel model) { if (model != null && !TextUtils.isEmpty(model.getGuardUserAvatar())) { @@ -3073,6 +3072,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis } mRefreshUserListCallback = null; mTimeChargeCallback = null; + Contexts = null; } public void clearData() { diff --git a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java index c99e9de4e..388557c48 100644 --- a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java +++ b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java @@ -731,12 +731,12 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe mContext.finish(); } isQuitF = false; - mContext = null;//上下文置空防止内存泄漏 } @Override public void onDestroy() { MicStatusManager.getInstance().removeOnMicListener(micStatusListener); + mContext = null;//上下文置空防止内存泄漏 } @Override