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

Commit e33db449 authored by Josh Gao's avatar Josh Gao Committed by Gerrit Code Review
Browse files

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

parents aaab62e3 a7641806
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