aboutsummaryrefslogtreecommitdiffstats
path: root/support
diff options
context:
space:
mode:
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;
}