summaryrefslogtreecommitdiff
path: root/plugins/mTextControl/src/services.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-12-30 16:14:17 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-12-30 16:14:17 +0000
commitaf227aa7653dc726c3caf22fbeeebad38e717dd7 (patch)
tree95ab8291843e60a0097a549931e91a3212ec1b9a /plugins/mTextControl/src/services.cpp
parentd16a21debd07dbc9cd8b18f285d12129a4a7ff34 (diff)
mTextControl: coverity warnings fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@15969 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/mTextControl/src/services.cpp')
-rw-r--r--plugins/mTextControl/src/services.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mTextControl/src/services.cpp b/plugins/mTextControl/src/services.cpp
index ed6ff03f3e..affac23e92 100644
--- a/plugins/mTextControl/src/services.cpp
+++ b/plugins/mTextControl/src/services.cpp
@@ -162,6 +162,7 @@ MTI_MTextCreateEx(HANDLE userHandle, void *text, DWORD flags)
if (flags & MTEXT_FLG_WCHAR) result->ftd->putTextW((WCHAR *)text);
else result->ftd->putTextA((char *)text);
MText_InitFormatting1(result);
+ delete result;
return 0;
}