Merge "Check before closing the CloseGuard if not closed yet" into qt-dev

am: cc33160f6a

Change-Id: I2ce46bec53da48d6817690a9595098f70917323f
This commit is contained in:
Mehdi Alizadeh
2019-04-16 11:32:44 -07:00
committed by android-build-merger

View File

@@ -271,7 +271,9 @@ public final class AppPredictor {
if (mCloseGuard != null) {
mCloseGuard.warnIfOpen();
}
destroy();
if (!mIsClosed.get()) {
destroy();
}
} finally {
super.finalize();
}