mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: AdjustAmountOfExternalAllocatedMemory regression in NativeImage destructor (#29222)
Co-authored-by: Milan Burda <milan.burda@gmail.com>
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user