summaryrefslogtreecommitdiff
path: root/plugins/MirOTR/src/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirOTR/src/utils.cpp')
-rw-r--r--plugins/MirOTR/src/utils.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/MirOTR/src/utils.cpp b/plugins/MirOTR/src/utils.cpp
index a624520afd..f61738deeb 100644
--- a/plugins/MirOTR/src/utils.cpp
+++ b/plugins/MirOTR/src/utils.cpp
@@ -207,15 +207,15 @@ void ShowWarning(TCHAR *msg) {
mir_sntprintf(buffer, _T("%s Warning"), _T(MODULENAME));
- TCHAR *message;
+
switch(disp) {
case ED_POP:
{
int size = int(mir_tstrlen(msg) + 515);
- message = new TCHAR[size]; // newline and null terminator
+ TCHAR *message = new TCHAR[size]; // newline and null terminator
mir_sntprintf(message, size, _T("%s\r\n%s"), buffer, msg);
PUShowMessageT(message, SM_WARNING);
- delete message;
+ delete[] message;
}
break;
case ED_MB: