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

Commit a4a7c1a0 authored by Josh Gao's avatar Josh Gao Committed by android-build-merger
Browse files

Merge "SharedMemory: clear file descriptor when explicitly closed."

am: e33db449

Change-Id: I699605f2c6c7f0e24f9646d692b45c71dd88fc91
parents 062a8b74 e33db449
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -259,6 +259,9 @@ public final class SharedMemory implements Parcelable, Closeable {
            mCleaner.clean();
            mCleaner = null;
        }

        // Cleaner.clean doesn't clear the value of the file descriptor.
        mFileDescriptor.setInt$(-1);
    }

    @Override