aboutsummaryrefslogtreecommitdiffstats
path: root/support
diff options
context:
space:
mode:
authorArjun Ramachandrula <arjun.ramachandrula@gmail.com>2020-07-28 16:22:03 -0400
committerArjun Ramachandrula <arjun.ramachandrula@gmail.com>2020-07-28 16:22:03 -0400
commit4282f3b0a9a16cc732a0662a044744f952fe38ed (patch)
tree9534774fadd428136fb5707d112bc68222ccaab5 /support
parent582a7a7afa8810cd641dbfa410604f29c2ceb64b (diff)
downloadservo-4282f3b0a9a16cc732a0662a044744f952fe38ed.tar.gz
servo-4282f3b0a9a16cc732a0662a044744f952fe38ed.zip
Fixed usage of wrong delete
Diffstat (limited to 'support')
-rw-r--r--support/hololens/ServoApp/strutils.h2
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;
}