From 6452f843b6898cc5472d1776fb0c923132e27554 Mon Sep 17 00:00:00 2001 From: Lucas CHOLLET Date: Wed, 5 Mar 2025 10:07:55 -0700 Subject: [PATCH] Services/ImageDecoder: Move bitmaps instead of copying them Manual cherry-pick of the second change in LadybirdBrowser/ladybird@51ad86f, the first part was already done independently in this repo in b499dc18. --- Userland/Services/ImageDecoder/ConnectionFromClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Services/ImageDecoder/ConnectionFromClient.cpp b/Userland/Services/ImageDecoder/ConnectionFromClient.cpp index 6fa293362c0..a5f3c060945 100644 --- a/Userland/Services/ImageDecoder/ConnectionFromClient.cpp +++ b/Userland/Services/ImageDecoder/ConnectionFromClient.cpp @@ -97,7 +97,7 @@ NonnullRefPtr ConnectionFromClient::make_decode_image return TRY(decode_image_to_details(encoded_buffer, ideal_size, mime_type)); }, [strong_this = NonnullRefPtr(*this), image_id](DecodeResult result) -> ErrorOr { - strong_this->async_did_decode_image(image_id, result.is_animated, result.loop_count, result.bitmaps, result.durations, result.scale); + strong_this->async_did_decode_image(image_id, result.is_animated, result.loop_count, move(result.bitmaps), move(result.durations), result.scale); strong_this->m_pending_jobs.remove(image_id); return {}; },