D6376: Fix double delete crash during shutdown
Christoph Cullmann
noreply at phabricator.kde.org
Sun Jun 25 20:25:52 UTC 2017
cullmann added a comment.
I don't speak about threading races. The whole class is not thread-safe, if threading occurs, all is lost.
But I see the chance, that you arrive twice at the m_reusablePhonons.insert(m); line, as there are multiple ways into the function doing that, one e.g. via NotifyByAudio::close and one in NotifyByAudio::onAudioFinished.
If you e.g. have a queued event for NotifyByAudio::onAudioFinished, that might happen even after you do ::close.
In any case, with the hash set we don't need to care for that.
REPOSITORY
R289 KNotifications
REVISION DETAIL
https://phabricator.kde.org/D6376
To: cullmann, #frameworks
Cc: mpyne, rjvbb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170625/874c5fc7/attachment.html>
More information about the Kde-frameworks-devel
mailing list