diff options
Diffstat (limited to 'src/corelib/tools/qstring.cpp')
-rw-r--r-- | src/corelib/tools/qstring.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qstring.cpp b/src/corelib/tools/qstring.cpp index 5e69a13057..710aec931a 100644 --- a/src/corelib/tools/qstring.cpp +++ b/src/corelib/tools/qstring.cpp @@ -7438,7 +7438,7 @@ QString QString::fromRawData(const QChar *unicode, int size) } else if (!size) { x = shared_empty.data_ptr(); } else { - x = static_cast<Data *>(::malloc(sizeof(Data) + sizeof(ushort))); + x = static_cast<Data *>(::malloc(sizeof(Data))); Q_CHECK_PTR(x); x->ref.initializeOwned(); x->size = size; |