┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews
diff options
context:
space:
mode:
authorMéven Car <[email protected]>2026-03-12 11:44:06 +0100
committerMéven Car <[email protected]>2026-03-12 11:00:39 +0000
commitc2e0eb9c4df7abe67c4ae14bc93eaa387559dec4 (patch)
treedf7e87435dba2c53d33596f5cad0664111cdd705 /src/kitemviews
parent1927a688b1a6c96ecd5aa84df93b8e133065afe2 (diff)
KitemListSmoothScroller: delete cloned QWheelEvent after use
Prevent a mem-leak detected with asan.
Diffstat (limited to 'src/kitemviews')
-rw-r--r--src/kitemviews/private/kitemlistsmoothscroller.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kitemviews/private/kitemlistsmoothscroller.cpp b/src/kitemviews/private/kitemlistsmoothscroller.cpp
index b7d0a8cd4..915b6b3d5 100644
--- a/src/kitemviews/private/kitemlistsmoothscroller.cpp
+++ b/src/kitemviews/private/kitemlistsmoothscroller.cpp
@@ -214,6 +214,7 @@ void KItemListSmoothScroller::handleWheelEvent(QWheelEvent *event)
QWheelEvent *copy = event->clone();
QApplication::sendEvent(m_scrollBar, copy);
event->setAccepted(copy->isAccepted());
+ delete copy;
m_smoothScrolling = previous;
}