Fix all the windows crashes

This commit is contained in:
David Sansome 2010-08-28 12:30:53 +00:00
parent 7e4f51acb8
commit c625ac229d

View File

@ -176,7 +176,7 @@ bool Copy(QIODevice* source, QIODevice* destination) {
ScopedWCharArray::ScopedWCharArray(const QString& str) ScopedWCharArray::ScopedWCharArray(const QString& str)
: chars_(str.length()), : chars_(str.length()),
data_(new wchar_t(chars_ + 1)) data_(new wchar_t[chars_ + 1])
{ {
str.toWCharArray(data_.get()); str.toWCharArray(data_.get());
data_[chars_] = '\0'; data_[chars_] = '\0';