]> cloud.milkyroute.net Git - dolphin.git/commit
Fixes small memory leak in DolphinContextMenu
authorDavid Hallas <david@davidhallas.dk>
Wed, 18 Jul 2018 22:43:25 +0000 (16:43 -0600)
committerNathaniel Graham <nate@kde.org>
Thu, 19 Jul 2018 14:25:12 +0000 (08:25 -0600)
commit2cbf3cb11ea668577121fa755c1ddacc6f0acdd8
treed428c5c58acac70cdc8a6f16a0569cbb91ab1823
parent80bc133da937e5351e5ed95443093ec1efac5640
Fixes small memory leak in DolphinContextMenu

Summary: When DolphinContextMenu::baseFileItem is called a KFileItem is allocated and stored in DolphinContextMenu::m_baseFileItem, which is of type KFileItem*, but the destructor failed to delete this.

Test Plan: This leak was found using Address Sanitizer

Reviewers: broulik, elvisangelaccio

Reviewed By: broulik, elvisangelaccio

Subscribers: ngraham, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D14178
src/dolphincontextmenu.cpp