summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-04-11 12:35:26 +0200
committerAndreas Kling <kling@serenityos.org>2021-04-11 12:52:42 +0200
commita2686f9bec2f5d0e337b91ca10bbd7f6e0a178c3 (patch)
tree6bb64f1c5caeef5bb47de0750d60523bcc0ddb27 /Userland
parent0c02dfcad58fdfbf2b3b08812c1285faf966bf14 (diff)
downloadserenity-a2686f9bec2f5d0e337b91ca10bbd7f6e0a178c3.zip
LibGUI: Avoid unnecessary Gfx::Bitmap cloning in FileIconProvider
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibGUI/FileIconProvider.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/FileIconProvider.cpp b/Userland/Libraries/LibGUI/FileIconProvider.cpp
index d2748b8abc..cfb5596e92 100644
--- a/Userland/Libraries/LibGUI/FileIconProvider.cpp
+++ b/Userland/Libraries/LibGUI/FileIconProvider.cpp
@@ -197,7 +197,7 @@ Icon FileIconProvider::icon_for_executable(const String& path)
RefPtr<Gfx::Bitmap> bitmap;
if (section.is_undefined()) {
- bitmap = s_executable_icon.bitmap_for_size(icon_section.image_size)->clone();
+ bitmap = s_executable_icon.bitmap_for_size(icon_section.image_size);
} else {
bitmap = Gfx::load_png_from_memory(reinterpret_cast<const u8*>(section.raw_data()), section.size());
}