D7529: KIO: fix long-standing memory leak on exit.

David Faure noreply at phabricator.kde.org
Thu Aug 24 21:47:06 UTC 2017


dfaure created this revision.
Restricted Application added a project: Frameworks.

REVISION SUMMARY
  Slave wasn't really deleted (too late for deleteLater when
  the KIO Scheduler global object is being deleted).
  But actually deleting led to SlaveKeeper using dangling pointers,
  so clear it first.
  
  Detected by heaptrack.

TEST PLAN
  heaptrack bin/jobtest ; valgrind bin/jobtest (to check no use of deleted memory)
  
    Before: total memory leaked 337 kB
    After: total memory leaked 232 kB

REPOSITORY
  R241 KIO

BRANCH
  master

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

AFFECTED FILES
  src/core/scheduler.cpp
  src/core/scheduler_p.h
  src/core/slave.cpp

To: dfaure, mwolff
Cc: #frameworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170824/39fa0f01/attachment.html>


More information about the Kde-frameworks-devel mailing list