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

--- Comment #9 from Vlad Zahorodnii <[email protected]> ---
Git commit da889c31e088902723f089673f3be0a70b4560a5 by Vlad Zahorodnii.
Committed on 17/06/2025 at 14:10.
Pushed by vladz into branch 'master'.

Guard against KConfigWatcher getting deleted while emitting configChanged()

If a user of the KConfigWatcher releases its reference after receiving
the configChanged() signal so the watcher gets deleted and there are more
configChanged() signals to emit, then KConfigWatcher may crash.

This change adds the corresponding guard. In hindsight, it'd be better if
the KConfigWatcher emitted only one signal (for example by wrapping the
changes variable in a helper to provide a convenient way to determine dirty
groups and keys).

This is a blind fix for a somewhat mildly recurring crash in kwin.
SENTRY: KWIN-C3Q

M  +5    -0    src/core/kconfigwatcher.cpp

https://invent.kde.org/frameworks/kconfig/-/commit/da889c31e088902723f089673f3be0a70b4560a5

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

Reply via email to