D14453: Fixes memory leak of KItemListHeader

David Hallas noreply at phabricator.kde.org
Sun Jul 29 11:12:18 BST 2018


hallas created this revision.
Restricted Application added a project: Dolphin.
Restricted Application added a subscriber: kfm-devel.
hallas requested review of this revision.

REVISION SUMMARY
  Fixes memory leak of KItemListHeader
  The KItemListHeader passed the listView parent object to the QObject
  base class, but that pointer seems to always be nullptr causing the
  KItemListHeader to not be memory managed by anything. Instead simple
  use the listView as parent pointer.

TEST PLAN
  This leak was found using Address Sanitizer

REPOSITORY
  R318 Dolphin

BRANCH
  fixes_leak_of_item_list_header

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

AFFECTED FILES
  src/kitemviews/kitemlistheader.cpp

To: hallas
Cc: kfm-devel, spoorun, navarromorales, firef, andrebarros, emmanuelp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20180729/7e6f9c01/attachment.htm>


More information about the kfm-devel mailing list