diff options
author | Arjun Ramachandrula <arjun.ramachandrula@gmail.com> | 2020-07-28 16:22:03 -0400 |
---|---|---|
committer | Arjun Ramachandrula <arjun.ramachandrula@gmail.com> | 2020-07-28 16:22:03 -0400 |
commit | 4282f3b0a9a16cc732a0662a044744f952fe38ed (patch) | |
tree | 9534774fadd428136fb5707d112bc68222ccaab5 /support | |
parent | 582a7a7afa8810cd641dbfa410604f29c2ceb64b (diff) | |
download | servo-4282f3b0a9a16cc732a0662a044744f952fe38ed.tar.gz servo-4282f3b0a9a16cc732a0662a044744f952fe38ed.zip |
Fixed usage of wrong delete
Diffstat (limited to 'support')
-rw-r--r-- | support/hololens/ServoApp/strutils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/support/hololens/ServoApp/strutils.h b/support/hololens/ServoApp/strutils.h index 22198332c90..4ebf8170075 100644 --- a/support/hololens/ServoApp/strutils.h +++ b/support/hololens/ServoApp/strutils.h @@ -13,7 +13,7 @@ std::wstring format(const std::wstring &txt, Args... args) { auto ptr = new wchar_t[size]; swprintf(ptr, size, txt.c_str(), args...); auto wstr = std::wstring(ptr); - delete ptr; + delete[] ptr; return wstr; } |