1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-31 11:35:24 +01:00

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)
: chars_(str.length()),
data_(new wchar_t(chars_ + 1))
data_(new wchar_t[chars_ + 1])
{
str.toWCharArray(data_.get());
data_[chars_] = '\0';