https://bugs.kde.org/show_bug.cgi?id=510449

--- Comment #14 from Fushan Wen <[email protected]> ---
Git commit b6bb2c456f3e0b0cab9dceca11b782e2b64740d5 by Fushan Wen.
Committed on 22/11/2025 at 00:30.
Pushed by fusionfuture into branch 'Plasma/6.5'.

klipper: fix potential memory leak from action menu

m_myMenu is only deleted when the timer reaches timeout, so when
m_myMenu is not null but a new action menu is invoked in
`URLGrabber::actionMenu`, the old QMenu object is leaked.

QAction in the menu also has a wrong lifetime. Its parent should be the
menu instead of URLGrabber, which is always alive when klipper is active.
(cherry picked from commit 46eb126a12b30da4868cd4349cca07c75a246dba)

M  +12   -15   klipper/urlgrabber.cpp
M  +1    -1    klipper/urlgrabber.h

https://invent.kde.org/plasma/plasma-workspace/-/commit/b6bb2c456f3e0b0cab9dceca11b782e2b64740d5

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to