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:
Victor Hsieh
2019-02-08 09:56:16 -08:00
parent 79974722c4
commit b9d6832752

View File

@@ -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: