Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.10.0
-
None
-
57318ce8c2f2fbc8cbdf987fc7e2f661c9a2e688
Description
The new QMetaObject::invokeMethod with lambda support, leaks when using Qt::QueuedConnection.
See attached test application.
The leaks is happens in qtbase\src\corelib\kernel\qobjectdefs.h
line 535
new QtPrivate::QFunctorSlotObjectWithNoArgs<Func, decltype(function())>(function),
Note: I originally found this leak when using QMetaObject::invokeMethod with Qt::BlockingQueuedConnection across threads. In that case, there is more than one leak.
For the sake of simplicity, my demo app limits the case to single thread + Qt::QueuedConnection
Attachments
Issue Links
- is duplicated by
-
QTBUG-65756 When QMetaObject::invokeMethod run functor finished, Lambda not been released, memory leak.
-
- Closed
-