summaryrefslogtreecommitdiff
path: root/Userland/Applications/ImageViewer/ViewWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Applications/ImageViewer/ViewWidget.cpp')
-rw-r--r--Userland/Applications/ImageViewer/ViewWidget.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Applications/ImageViewer/ViewWidget.cpp b/Userland/Applications/ImageViewer/ViewWidget.cpp
index c37fe46555..93b4b6ac6a 100644
--- a/Userland/Applications/ImageViewer/ViewWidget.cpp
+++ b/Userland/Applications/ImageViewer/ViewWidget.cpp
@@ -242,8 +242,7 @@ void ViewWidget::load_from_file(const String& path)
// Spawn a new ImageDecoder service process and connect to it.
auto client = ImageDecoderClient::Client::construct();
- // FIXME: Find a way to avoid the memory copying here.
- auto decoded_image_or_error = client->decode_image(ByteBuffer::copy(mapped_file.bytes()));
+ auto decoded_image_or_error = client->decode_image(mapped_file.bytes());
if (!decoded_image_or_error.has_value()) {
show_error();
return;