Verified Commit a8a455e8 authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

wallpapers/image: fix a memory leak when pending image fails to load

This destroys the created image object when it fails to load.
parent 0b7f20a8
Pipeline #191818 passed with stage
in 6 minutes and 22 seconds
......@@ -120,6 +120,7 @@ QQC2.StackView {
wallpaper.loading = false;
if (pendingImage.status !== Image.Ready) {
pendingImage.destroy();
mediaProxy.useSingleImageDefaults();
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment