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:
parent
7e4f51acb8
commit
c625ac229d
@ -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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user