Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4aeef163 authored by Dake Gu's avatar Dake Gu Committed by Android (Google) Code Review
Browse files

Merge "TvInputManager: fix leaking Context when failed create Session"

parents 8077622e 50b81622
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -888,6 +888,8 @@ public final class TvInputManager {
                    if (token != null) {
                        session = new Session(token, channel, mService, mUserId, seq,
                                mSessionCallbackRecordMap);
                    } else {
                        mSessionCallbackRecordMap.delete(seq);
                    }
                    record.postSessionCreated(session);
                }
@@ -2487,7 +2489,7 @@ public final class TvInputManager {
                }
            }
            synchronized (mSessionCallbackRecordMap) {
                mSessionCallbackRecordMap.remove(mSeq);
                mSessionCallbackRecordMap.delete(mSeq);
            }
        }