Fix potential double destroy of AssetManager am: 0a8a1e9d40 am: 303d3874f2 am: e29951e29e
Change-Id: Ie636f378bb68f414760453198f4c08762182568a
This commit is contained in:
@@ -1157,8 +1157,11 @@ public final class AssetManager implements AutoCloseable {
|
||||
}
|
||||
}
|
||||
|
||||
if (mObject != 0) {
|
||||
nativeDestroy(mObject);
|
||||
synchronized (this) {
|
||||
if (mObject != 0) {
|
||||
nativeDestroy(mObject);
|
||||
mObject = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user