fix: AdjustAmountOfExternalAllocatedMemory regression in NativeImage destructor (#29222)

Co-authored-by: Milan Burda <milan.burda@gmail.com>
This commit is contained in:
trop[bot]
2021-05-19 11:55:03 +09:00
committed by GitHub
parent 419b675827
commit eed685ca7a

View File

@@ -139,7 +139,7 @@ NativeImage::~NativeImage() {
auto* const image_skia = image_.ToImageSkia();
if (!image_skia->isNull()) {
isolate_->AdjustAmountOfExternalAllocatedMemory(
image_skia->bitmap()->computeByteSize());
-static_cast<int64_t>(image_skia->bitmap()->computeByteSize()));
}
}
}