diff options
author | Andreas Kling <kling@serenityos.org> | 2021-04-11 12:35:26 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-11 12:52:42 +0200 |
commit | a2686f9bec2f5d0e337b91ca10bbd7f6e0a178c3 (patch) | |
tree | 6bb64f1c5caeef5bb47de0750d60523bcc0ddb27 /Userland | |
parent | 0c02dfcad58fdfbf2b3b08812c1285faf966bf14 (diff) | |
download | serenity-a2686f9bec2f5d0e337b91ca10bbd7f6e0a178c3.zip |
LibGUI: Avoid unnecessary Gfx::Bitmap cloning in FileIconProvider
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibGUI/FileIconProvider.cpp | 2 |
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()); } |