Fixes small memory leak in DolphinContextMenu
ClosedPublic

Authored by hallas on Jul 17 2018, 7:57 AM.

Details

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

Diff Detail

Repository
R318 Dolphin
Lint
Lint Skipped
Unit
Unit Tests Skipped
hallas created this revision.Jul 17 2018, 7:57 AM
Restricted Application added a project: Dolphin. · View Herald TranscriptJul 17 2018, 7:57 AM
Restricted Application added a subscriber: kfm-devel. · View Herald Transcript
hallas requested review of this revision.Jul 17 2018, 7:57 AM
broulik accepted this revision.Jul 17 2018, 9:36 AM
This revision is now accepted and ready to land.Jul 17 2018, 9:36 AM

Thanks! Can you commit this to the Applications/18.08 branch so we can be sure it gets into the 18.08 release?

elvisangelaccio accepted this revision.Jul 17 2018, 8:55 PM

Thanks! Can you commit this to the Applications/18.08 branch so we can be sure it gets into the 18.08 release?

How do I do that? I don't think I have commit access, but with the correct guidance I could definitely do it :)

ngraham closed this revision.Jul 18 2018, 10:48 PM