https://bugs.kde.org/show_bug.cgi?id=528917

Akseli Lahtinen <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|6.9.0                       |6.8.4
  Fixed/Implemented|                            |
                 In|                            |
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/union/-/commit/2bcdd302b |ma/union/-/commit/192f393d7
                   |3720f6b95bf1b45865121ac65e6 |7d183a007521436914b8c189a0c
                   |3be5                        |655b

--- Comment #14 from Akseli Lahtinen <[email protected]> ---
Git commit 192f393d77d183a007521436914b8c189a0c655b by Akseli Lahtinen, on
behalf of Arjen Hiemstra.
Committed on 23/11/2026 at 08:48.
Pushed by akselmo into branch 'Plasma/6.8'.

Use and store StylePropertyGroup as shared_ptr rather than raw pointer

We store StylePropertyGroup in ElementQuery as shared_ptr but then
exposed it as raw pointer and then stored said raw pointer in other
places. This leads to crashes as the StylePropertyGroup may be deleted
upon query re-execution.

Instead, ensure we store it as a shared_ptr so we keep track of whether
there are any users, and only delete the group when no users remain.

(cherry picked from commit 2bcdd302b3720f6b95bf1b45865121ac65e63be5)
FIXED-IN: 6.8.4

M  +2    -2    src/ElementQuery.cpp
M  +1    -1    src/ElementQuery.h
M  +7    -0    src/PropertiesTypes.h
M  +4    -1    src/output/qtquick/plugin/QuickStyle.cpp
M  +1    -0    src/output/qtquick/plugin/QuickStyle.h
M  +1    -1    src/output/qtquick/plugin/StyledRectangle.cpp
M  +1    -1    src/output/qtquick/plugin/StyledRectangle.h
M  +1    -1    src/output/qtwidgets/BackgroundDrawing.cpp
M  +1    -2    src/output/qtwidgets/BackgroundDrawing.h
M  +2    -2    src/output/qtwidgets/StyleUtils.cpp
M  +2    -2    src/output/qtwidgets/StyleUtils.h
M  +1    -1    src/output/qtwidgets/UnionStyle.cpp
M  +1    -1    src/output/qtwidgets/UnionStyle.h
M  +5    -5    src/output/qtwidgets/elements/AbstractElement.cpp
M  +9    -10   src/output/qtwidgets/elements/AbstractElement.h
M  +1    -1    src/output/qtwidgets/elements/ItemViewElement.h
M  +5    -5    src/output/qtwidgets/elements/MenuItemElement.h
M  +1    -1    src/output/qtwidgets/elements/SliderElement.h
M  +3    -3    src/output/qtwidgets/elements/ToolBarElement.h
M  +2    -0    src/properties/StylePropertyGroup.h
M  +4    -0    tools/propertygenerator/templates/property.h.j2

https://invent.kde.org/plasma/union/-/commit/192f393d77d183a007521436914b8c189a0c655b

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to