Fix a memory leak in QMetaObject::connectSlotsByName function.
QObjectPrivate::Connection time life should be controlled by QMetaObject::Connection handle. Change-Id: Ie7fcd950082a3e6cebc29ecc0622007470914edb Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
parent
087d6c21b8
commit
439a789745
@ -3075,7 +3075,7 @@ void QMetaObject::connectSlotsByName(QObject *o)
|
|||||||
}
|
}
|
||||||
if (sigIndex < 0)
|
if (sigIndex < 0)
|
||||||
continue;
|
continue;
|
||||||
if (QMetaObjectPrivate::connect(co, sigIndex, o, i)) {
|
if (Connection(QMetaObjectPrivate::connect(co, sigIndex, o, i))) {
|
||||||
foundIt = true;
|
foundIt = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user