summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-05-05 17:36:36 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2011-05-05 17:36:36 (GMT)
commit95cd3aca76a47d59ef43e7c1566e5d43ab8b7c30 (patch)
tree0935915e89ed396cd4f33c553857d84ab39d95b7 /src/corelib
parent0ca404def7262ad7293592bbb7888a6df5ea27b7 (diff)
parentc1bbcda2cdd70d2a7a615bf823c55520914b90f5 (diff)
downloadQt-95cd3aca76a47d59ef43e7c1566e5d43ab8b7c30.zip
Qt-95cd3aca76a47d59ef43e7c1566e5d43ab8b7c30.tar.gz
Qt-95cd3aca76a47d59ef43e7c1566e5d43ab8b7c30.tar.bz2
Merge branch 'qt-4.8-from-4.7' of scm.dev.nokia.troll.no:qt/qt-integration into master-integration
* 'qt-4.8-from-4.7' of scm.dev.nokia.troll.no:qt/qt-integration: QNAM HTTP: Fix bug with explicitly zero-length compressed responses. Add enablers for Symbian App Booster Don't rely on uninitialized data Don't realloc user-provided buffer
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/tools/qtextboundaryfinder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/tools/qtextboundaryfinder.cpp b/src/corelib/tools/qtextboundaryfinder.cpp
index 34bc406..47319d4 100644
--- a/src/corelib/tools/qtextboundaryfinder.cpp
+++ b/src/corelib/tools/qtextboundaryfinder.cpp
@@ -199,11 +199,11 @@ QTextBoundaryFinder &QTextBoundaryFinder::operator=(const QTextBoundaryFinder &o
chars = other.chars;
length = other.length;
pos = other.pos;
- freePrivate = true;
QTextBoundaryFinderPrivate *newD = (QTextBoundaryFinderPrivate *)
- realloc(d, length*sizeof(HB_CharAttributes));
+ realloc(freePrivate ? d : 0, length*sizeof(HB_CharAttributes));
Q_CHECK_PTR(newD);
+ freePrivate = true;
d = newD;
memcpy(d, other.d, length*sizeof(HB_CharAttributes));