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

Commit 7d36cdb6 authored by Lorenzo Colitti's avatar Lorenzo Colitti Committed by Automerger Merge Worker
Browse files

Memory leak due to no stop for IpNeighborMonitor. am: 8bcf198c

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11910263

Change-Id: I22a5b3526c32c989be5c0fc644e9f177b8fe2eac
parents 26f7cb2b 8bcf198c
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -1322,6 +1322,7 @@ public class IpServer extends StateMachine {
    class UnavailableState extends State {
    class UnavailableState extends State {
        @Override
        @Override
        public void enter() {
        public void enter() {
            mIpNeighborMonitor.stop();
            mLastError = TetheringManager.TETHER_ERROR_NO_ERROR;
            mLastError = TetheringManager.TETHER_ERROR_NO_ERROR;
            sendInterfaceState(STATE_UNAVAILABLE);
            sendInterfaceState(STATE_UNAVAILABLE);
        }
        }