summaryrefslogtreecommitdiff
path: root/plugins/mTextControl/src/services.cpp
diff options
context:
space:
mode:
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;
}