D17201: Fix for memory leak in SessionManagerFixed

Hartmut Riesenbeck noreply at phabricator.kde.org
Mon May 6 14:26:36 BST 2019


hriesenbeck added inline comments.

INLINE COMMENTS

> tcanabrava wrote in sessionmanagerfixed.cpp:60
> can we erase an iterator inside a loop?

Yes, with QList that works.
Erase() removes the list entry the iterator is pointing to and returns an iterator to the following element. That's why the iterator increment operator is in the else block.

REPOSITORY
  R340 Parley

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

To: hriesenbeck, #kde_edu
Cc: tcanabrava, apol, kde-edu, narvaez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-edu/attachments/20190506/a0436522/attachment.html>


More information about the kde-edu mailing list