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

--- Comment #2 from ratijas <m...@ratijas.tk> ---
Git commit 8e8ef50b9faa3c2365dcf60f9d8dac71c55c0440 by ivan tkachenko.
Committed on 23/04/2024 at 18:18.
Pushed by ratijas into branch 'master'.

Fix connection lifetime issue

The lack of receiver may cause undefined behavior / segmentation fault
crash if, for example, a KActionCollection is stored as a
Q_GLOBAL_STATIC too and coincidentally gets destructed after the
KGlobalAccel singleton instance.

Note that all other connections in this file use this `q->connect` style
and already have a context object set to `q`.

Test case: Run `plasmoidviewer -a org.kde.plasma.clipboard`. With this
patch is still crashes on exit, but now in a different place.
Related: bug 485386

M  +1    -1    src/kglobalaccel.cpp

https://invent.kde.org/frameworks/kglobalaccel/-/commit/8e8ef50b9faa3c2365dcf60f9d8dac71c55c0440

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

Reply via email to