From c5a616de350eafd780eceb853d149afe7d1951d0 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 22 Dec 2023 14:40:24 -0400 Subject: [PATCH] Fix possible crash in style::colorizeImage. --- ui/style/style_core.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/style/style_core.cpp b/ui/style/style_core.cpp index 040313c..8015bf3 100644 --- a/ui/style/style_core.cpp +++ b/ui/style/style_core.cpp @@ -106,6 +106,7 @@ void colorizeImage( auto width = srcRect.width(); auto height = srcRect.height(); Assert(outResult->rect().contains(QRect(dstPoint, srcRect.size()))); + outResult->detach(); auto pattern = anim::shifted(color);