Fix crash by wrong assertion check
The original destructor didn't actually run. But since ag/6239075 fixed the memory leak, this starts to crash. Test: atest ApkVerityTest (not yet submitted) Bug: 112037636 Change-Id: Ie7fe3eaf9e1ff1b374243b1d78417423ffba0049
This commit is contained in:
@@ -122,7 +122,7 @@ class JavaByteArrayHolder {
|
||||
}
|
||||
|
||||
~JavaByteArrayHolder() {
|
||||
LOG_ALWAYS_FATAL_IF(mElements == nullptr, "Elements are not released");
|
||||
LOG_ALWAYS_FATAL_IF(mElements != nullptr, "Elements are not released");
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user