From: Aaron Kennedy Date: Tue, 8 Nov 2011 11:37:18 +0000 (+0000) Subject: Ensure connection lists get cleaned X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=da8d1689ef3d4efc769465d195840c5058b38e81;p=konrad%2Fqtdeclarative.git Ensure connection lists get cleaned Task-number: QTBUG-21368 Change-Id: I2cdecc984edb76a5fb1417cfdb29ffe6b90b0993 Reviewed-by: Kent Hansen --- diff --git a/src/declarative/qml/v8/qv8qobjectwrapper.cpp b/src/declarative/qml/v8/qv8qobjectwrapper.cpp index d93e1b8..6a9f583 100644 --- a/src/declarative/qml/v8/qv8qobjectwrapper.cpp +++ b/src/declarative/qml/v8/qv8qobjectwrapper.cpp @@ -1352,6 +1352,7 @@ v8::Handle QV8QObjectWrapper::Disconnect(const v8::Arguments &args) // Match! if (connections.connectionsInUse) { connection.needsDestroy = true; + connections.connectionsNeedClean = true; } else { connection.dispose(); connections.removeAt(ii); @@ -1371,6 +1372,7 @@ v8::Handle QV8QObjectWrapper::Disconnect(const v8::Arguments &args) // Match! if (connections.connectionsInUse) { connection.needsDestroy = true; + connections.connectionsNeedClean = true; } else { connection.dispose(); connections.removeAt(ii);