frameworks/base: release references of UriPermissionOwner
Change-Id: I72e2310458de15f18e6f2c67f383bbb5c8f60ae2
This commit is contained in:
@@ -59,11 +59,11 @@ class UriPermission {
|
||||
if ((modeFlagsToClear&Intent.FLAG_GRANT_WRITE_URI_PERMISSION) != 0) {
|
||||
globalModeFlags &= ~Intent.FLAG_GRANT_WRITE_URI_PERMISSION;
|
||||
modeFlags &= ~Intent.FLAG_GRANT_WRITE_URI_PERMISSION;
|
||||
if (readOwners.size() > 0) {
|
||||
if (writeOwners.size() > 0) {
|
||||
for (UriPermissionOwner r : writeOwners) {
|
||||
r.removeWritePermission(this);
|
||||
}
|
||||
readOwners.clear();
|
||||
writeOwners.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user