D27002: Fix memory leak in KUrlNavigatorPlacesSelector::updateMenu

Anthony Fieroni noreply at phabricator.kde.org
Thu Jan 30 08:45:19 GMT 2020


anthonyfieroni added inline comments.

INLINE COMMENTS

> kurlnavigatorplacesselector.cpp:76
> +    for(QObject *obj : QObjectList(m_placesMenu->children())) {
> +        delete qobject_cast<QMenu*>(obj); // Noop for nullptr
> +    }

Why cast?

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D27002

To: fvogt, #frameworks
Cc: anthonyfieroni, meven, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200130/fffbcfa2/attachment.html>


More information about the Kde-frameworks-devel mailing list