diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-08 09:51:51 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-08 09:51:51 (GMT) |
commit | f41e84f6ce70e8b05f6cfcadc6780dc5ecc2f8b0 (patch) | |
tree | d0f1057ea03d1d08d354835e444a942e180cca8e /src/declarative/qml/qmlengine.cpp | |
parent | 5537833ea06a60a5ed6027c9d3d707291b2673ee (diff) | |
download | Qt-f41e84f6ce70e8b05f6cfcadc6780dc5ecc2f8b0.zip Qt-f41e84f6ce70e8b05f6cfcadc6780dc5ecc2f8b0.tar.gz Qt-f41e84f6ce70e8b05f6cfcadc6780dc5ecc2f8b0.tar.bz2 |
Zero bindingBits correctly
Diffstat (limited to 'src/declarative/qml/qmlengine.cpp')
-rw-r--r-- | src/declarative/qml/qmlengine.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/declarative/qml/qmlengine.cpp b/src/declarative/qml/qmlengine.cpp index 9ee0d1b..ccdf6cf 100644 --- a/src/declarative/qml/qmlengine.cpp +++ b/src/declarative/qml/qmlengine.cpp @@ -534,9 +534,10 @@ void QmlDeclarativeData::setBindingBit(QObject *obj, int bit) bindingBits = (quint32 *)realloc(bindingBits, arraySize * sizeof(quint32)); + memset(bindingBits + oldArraySize, - sizeof(quint32) * (arraySize - oldArraySize), - 0x00); + 0x00, + sizeof(quint32) * (arraySize - oldArraySize)); bindingBitsSize = arraySize * 32; } |