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

--- Comment #12 from Fushan Wen <[email protected]> ---
Git commit 46eb126a12b30da4868cd4349cca07c75a246dba by Fushan Wen.
Committed on 22/11/2025 at 00:11.
Pushed by fusionfuture into branch 'master'.

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.

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

https://invent.kde.org/plasma/plasma-workspace/-/commit/46eb126a12b30da4868cd4349cca07c75a246dba

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

Reply via email to