<table><tr><td style="">cullmann updated this revision to Diff 15850.<br />cullmann edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-f7lwy4skwgy4kns/" rel="noreferrer">(Show Details)</a>
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D6376" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><div style="padding: 8px 0;">...</div>#9 NotifyByAudio::~NotifyByAudio (this=0x24ee390, __in_chrg=<optimized out>) at /opt/local/var/lnxports/build/_opt_local_site-ports_kf5_KF5-Frameworks/kf5-knotifications/work/knotifications-5.32.0/src/notifybyaudio.cpp:47<br />
<br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">=> IMHO</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">Avoid</span> that <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">is a double delete, as all elements in m_reusablePhonons have this as parent:</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">there may be duplicated pointers in the reuse queue.</span><br />
<br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">if (m_reusablePhonons.isEmpty()) {<br />
=> avoid to do deleteAll, which either is a nop, as nothing there or always double deletes.</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">For notifications themself already a QHash is used, this set should avoid duplicate inserts.<br />
<br />
The only way to get dupes IMHO is to have NotifyByAudio::close and NotifyByAudio::onAudioFinished race.<br />
<br />
Can some of this signals be queued?<br />
</span></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R289 KNotifications</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D6376?vs=15844&id=15850" rel="noreferrer">https://phabricator.kde.org/D6376?vs=15844&id=15850</a></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D6376" rel="noreferrer">https://phabricator.kde.org/D6376</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/notifybyaudio.cpp<br />
src/notifybyaudio.h</div></div></div><br /><div><strong>To: </strong>cullmann, Frameworks<br /><strong>Cc: </strong>rjvbb<br /></div>