[kontact] [Bug 492408] Crash in KColorSchemeManager::indexForScheme

Nicolas Fella bugzilla_noreply at kde.org
Fri Aug 30 15:25:56 BST 2024


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

Nicolas Fella <nicolas.fella at gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/fram
                   |                            |eworks/kcolorscheme/-/commi
                   |                            |t/8ee0e727abf9c4ca96fb80446
                   |                            |eb877c2d13080e6

--- Comment #3 from Nicolas Fella <nicolas.fella at gmx.de> ---
Git commit 8ee0e727abf9c4ca96fb80446eb877c2d13080e6 by Nicolas Fella.
Committed on 30/08/2024 at 14:15.
Pushed by cullmann into branch 'master'.

[kcolorschememanager] Fix crash

The ctor has a complex sequence where we create KColorSchemeManagerPrivate,
access the parent KColorSchemeManager,
which again accesses KColorSchemeManagerPrivate, causing a crash

Simplify that by moving the code to an init function that runs after the
KColorSchemeManagerPrivate is fully constructed

M  +32   -26   src/kcolorschememanager.cpp
M  +2    -0    src/kcolorschememanager.h
M  +1    -1    src/kcolorschememanager_p.h

https://invent.kde.org/frameworks/kcolorscheme/-/commit/8ee0e727abf9c4ca96fb80446eb877c2d13080e6

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kdepim-bugs mailing list