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

Commit 1f6a325a authored by Marissa Wall's avatar Marissa Wall Committed by android-build-merger
Browse files

Merge "surfaceflinger: IBinder leak" into qt-dev

am: aed14698

Change-Id: I4bf55c2b72946b21dac0a6f29471d5f9f4bfdbba
parents 7caca674 aed14698
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -144,6 +144,9 @@ status_t TransactionCompletedThread::addPresentedCallbackHandles(
        } else {
        } else {
            ALOGW("cannot find listener in mPendingTransactions");
            ALOGW("cannot find listener in mPendingTransactions");
        }
        }
        if (listener->second.size() == 0) {
            mPendingTransactions.erase(listener);
        }


        status_t err = addCallbackHandle(handle);
        status_t err = addCallbackHandle(handle);
        if (err != NO_ERROR) {
        if (err != NO_ERROR) {
@@ -231,7 +234,9 @@ void TransactionCompletedThread::threadMain() {


                // If we are still waiting on the callback handles for this transaction, stop
                // If we are still waiting on the callback handles for this transaction, stop
                // here because all transaction callbacks for the same listener must come in order
                // here because all transaction callbacks for the same listener must come in order
                if (mPendingTransactions[listener].count(transactionStats.callbackIds) != 0) {
                auto pendingTransactions = mPendingTransactions.find(listener);
                if (pendingTransactions != mPendingTransactions.end() &&
                    pendingTransactions->second.count(transactionStats.callbackIds) != 0) {
                    break;
                    break;
                }
                }