Fixes small memory leak in DolphinContextMenu

Authored by hallas on Jul 18 2018, 10:43 PM.

Description

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

Details

Committed
ngrahamJul 19 2018, 2:25 PM
Reviewer
broulik
Differential Revision
D14178: Fixes small memory leak in DolphinContextMenu
Parents
R318:80bc133da937: [KItemListSelectionToggle] Adjust painting icon for high dpi scaling
Branches
Unknown
Tags
Unknown
References
tag: v18.07.80