Merge "SharedMemory: clear file descriptor when explicitly closed."
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user