projects
/
profile
/
ivi
/
qtbase.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
087d6c2
)
Fix a memory leak in QMetaObject::connectSlotsByName function.
author
Jędrzej Nowacki
<jedrzej.nowacki@nokia.com>
Wed, 14 Mar 2012 08:06:32 +0000
(09:06 +0100)
committer
Qt by Nokia
<qt-info@nokia.com>
Wed, 14 Mar 2012 17:45:28 +0000
(18:45 +0100)
QObjectPrivate::Connection time life should be controlled by
QMetaObject::Connection handle.
Change-Id: Ie7fcd950082a3e6cebc29ecc0622007470914edb
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
src/corelib/kernel/qobject.cpp
patch
|
blob
|
history
diff --git
a/src/corelib/kernel/qobject.cpp
b/src/corelib/kernel/qobject.cpp
index
3a4d1da
..
b648432
100644
(file)
--- a/
src/corelib/kernel/qobject.cpp
+++ b/
src/corelib/kernel/qobject.cpp
@@
-3075,7
+3075,7
@@
void QMetaObject::connectSlotsByName(QObject *o)
}
if (sigIndex < 0)
continue;
- if (
QMetaObjectPrivate::connect(co, sigIndex, o, i
)) {
+ if (
Connection(QMetaObjectPrivate::connect(co, sigIndex, o, i)
)) {
foundIt = true;
break;
}